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