provide<T> method

  1. @protected
T provide<T>()

Implementation

@protected
T provide<T>() {
  final dependency = IsolatedWorkerManager.instance?.dependencies[T];
  assert(
    dependency != null,
    'Dependency $T is not found'
  );

  return dependency!;
}