of<T extends MinController> static method

T of<T extends MinController>()

Implementation

static T of<T extends MinController>() {
  final type = T;
  assert(_instances.containsKey(type), 'MinService<$T> has not been initialized.');
  return _instances[type]!.controller as T;
}