setValue method

void setValue(
  1. MaterialProperty type,
  2. dynamic newValue
)

type - the parameter to change.

Sets the properties based on the values.

Implementation

void setValue(MaterialProperty type, dynamic newValue) {
  setValueFromString(type.name, newValue);
}