SemanticsNode.root constructor

SemanticsNode.root({
  1. Key? key,
  2. VoidCallback? showOnScreen,
  3. required SemanticsOwner owner,
})

Creates a semantic node to represent the root of the semantics tree.

The root node is assigned an identifier of zero.

Implementation

SemanticsNode.root({this.key, this._showOnScreen, required SemanticsOwner owner}) : _id = 0 {
  attach(owner);
}