add method
Implementation
@override
void add(NopListenerHandle key) {
assert(!_dispose);
assert(!_handles.contains(key));
_handles.add(key);
if (!_init) {
try {
NopLifeCycle.autoInit(data, this);
} catch (e, s) {
Log.e('${data.runtimeType} init error: $e\n$s', onlyDebug: false);
}
_init = true;
}
final local = data;
if (local is Listenable) {
local.addListener(key.update);
}
}