removeMaterialState method Null safety

  1. @protected
void removeMaterialState(
  1. MaterialState state
)
protected">@protected

Mutator to mark a MaterialState value as inactive.

Implementation

@protected
void removeMaterialState(MaterialState state) {
  if (materialStates.remove(state)) {
    setState((){});
  }
}