addMaterialState method Null safety

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

Mutator to mark a MaterialState value as active.

Implementation

@protected
void addMaterialState(MaterialState state) {
  if (materialStates.add(state)) {
    setState((){});
  }
}