MeteorSharedObjectProvider<T extends MeteorSharedObject> constructor
MeteorSharedObjectProvider<T extends MeteorSharedObject> ({
- required T model,
Implementation
MeteorSharedObjectProvider({required T model}) {
_model = model;
MeteorEventBus.addListener(
eventName: _eventName,
listener: (dynamic data) {
if (data is Map) {
_updateWithJson(data);
}
},
);
_setupState();
}