require method
The store registered for type, or throws if none exists.
Implementation
ComponentStore require(Type type) {
final store = _stores[type];
if (store == null) {
throw StateError(
'No component store registered for $type. Register it before use.',
);
}
return store;
}