SemanticsNode constructor

SemanticsNode({Key key, VoidCallback showOnScreen })

Creates a semantic node.

Each semantic node has a unique identifier that is assigned when the node is created.

Implementation

SemanticsNode({
  this.key,
  VoidCallback showOnScreen,
}) : id = _generateNewId(),
     _showOnScreen = showOnScreen;