data property
T
data
Implementation
T get data => _checkKey(_key, () => _items[_key]!.data);
void
data=(T variable)
Implementation
set data(T variable) {
if (_items.containsKey(_key)) {
if (!checkType(_key, T))
throw AccessorException(
"type '${variable.runtimeType}' is not a subtype of type '${getType(_key)}'");
_items[_key]!.data = variable;
_items[_key]!.notify();
return;
}
_items[_key] = _AccessorItem(variable);
}