setMaterialState method
- MaterialState state,
- bool isSet
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);
}