statesController property Null safety

MaterialStatesController? statesController
final

Represents the interactive "state" of this widget in terms of a set of MaterialStates, like MaterialState.pressed and MaterialState.focused.

Classes based on this one can provide their own MaterialStatesController to which they've added listeners. They can also update the controller's MaterialStatesController.value however, this may only be done when it's safe to call State.setState, like in an event handler.

Implementation

final MaterialStatesController? statesController;