stateOf<T extends StatefulWidget> method

StateX<StatefulWidget>? stateOf<T extends StatefulWidget>()

Retrieve the State object by its StatefulWidget. Returns null if not found.

Implementation

StateX? stateOf<T extends StatefulWidget>() =>
    _stateWidgetMap.isEmpty ? null : _stateWidgetMap[_type<T>()];