ScopeInitCallback<D extends ScopeDependencies> typedef Scope

ScopeInitCallback<D extends ScopeDependencies> = Future<D> Function(BuildContext context, ScopeInitContext ctx)

A function that initializes scope dependencies and returns them.

The progress goes through ScopeInitContext.progress, which is why there is no type argument for it here.

Implementation

typedef ScopeInitCallback<D extends ScopeDependencies> = Future<D> Function(
  BuildContext context,
  ScopeInitContext ctx,
);