withoutDependencies<T extends Object> static method
- InjectableInstanceCreatorWithoutDependencies<
T> creator, { - InjectableScope? scope,
Creates an InjectableFactory for a type that has no dependencies.
creator: A function that returns an instance ofT.scope: The optional InjectableScope for the created instance.
Implementation
static InjectableFactory withoutDependencies<T extends Object>(InjectableInstanceCreatorWithoutDependencies<T> creator, {InjectableScope? scope}) =>
InjectableFactory._(buildsType: T, creator: (_) => creator(), scope: scope);