targetState property

State<StatefulWidget>? get targetState

The State of the Widget in the tree that fired this event.

Implementation

State? get targetState {
  if (_targetNode is StatefulNode) {
    return (_targetNode as StatefulNode).state;
  } else {
    return null;
  }
}