initScope method
a helper method to push a new scope and init it's dependencies inside of GetIt
Implementation
GetIt initScope(
String name, {
required void Function(GetItHelper gh) init,
ScopeDisposeFunc? dispose,
}) {
getIt.pushNewScope(
scopeName: name,
init: (_) => init(this),
dispose: dispose,
);
return getIt;
}