stateIn static method

StateSet<StatefulWidget>? stateIn(
  1. StatefulWidget? widget
)

Return the State object used by the specified StatefulWidget object. Usually called in the StatefulWidget passing 'this' as a parameter.

Implementation

static StateSet? stateIn(StatefulWidget? widget) =>
    widget == null ? null : _statefulStates[widget];