setValues method

void setValues(
  1. Map<MaterialProperty, dynamic>? values
)

values - a container with parameters.

Sets the properties based on the values.

Implementation

void setValues(Map<MaterialProperty, dynamic>? values) {
  if (values == null) return;

  for (final key in values.keys) {
    final newValue = values[key];

    if (newValue == null) {
      console.warning('Material setValues: $key parameter is null.');
      continue;
    }

    setValue(key, newValue);
  }
}