setMaterialState method Null safety
- MaterialState state,
- bool isSet
protected">@protected
Mutator to mark a MaterialState value as either active or inactive.
Implementation
@protected
void setMaterialState(MaterialState state, bool isSet) {
return isSet ? addMaterialState(state) : removeMaterialState(state);
}