getStore<T extends DataStore> static method
T
getStore<T extends DataStore>()
Gets the store of the given type.
Implementation
static T getStore<T extends DataStore>() {
if (_store == null) {
throw StateError(
'DataFlow store not initialized. Call DataFlow.init() before using.',
);
}
return _store! as T;
}