SemanticsOwner constructor

SemanticsOwner(
  1. {required SemanticsUpdateCallback onSemanticsUpdate}
)

Creates a SemanticsOwner that manages zero or more SemanticsNode objects.

Implementation

SemanticsOwner({
  required this.onSemanticsUpdate,
}){
  // TODO(polina-c): stop duplicating code across disposables
  // https://github.com/flutter/flutter/issues/137435
  if (kFlutterMemoryAllocationsEnabled) {
    FlutterMemoryAllocations.instance.dispatchObjectCreated(
      library: 'package:flutter/semantics.dart',
      className: '$SemanticsOwner',
      object: this,
    );
  }
}