addMaterialState method

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

Mutator to mark a MaterialState value as active.

Implementation

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