require method

ComponentStore require(
  1. Type type
)

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;
}