operator []= method

void operator []=(
  1. String key,
  2. ThemeProperty? prop
)

Set the value for key. Will remove the key if prop or its contained value is null.

Implementation

void operator []=(String key, ThemeProperty<dynamic>? prop) {
  if (prop?.value == null) {
    _props.remove(key);
  } else {
    _props[key] = prop!;
  }
}