operator []= method
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!;
}
}