addMaterialState method Null safety
- MaterialState state
protected">@protected
Mutator to mark a MaterialState value as active.
Implementation
@protected
void addMaterialState(MaterialState state) {
if (materialStates.add(state)) {
setState((){});
}
}