singleton<T extends Object> static method
Bind a 'Singleton' class. Built together with the module. The instance will always be the same.
Implementation
static Bind<T> singleton<T extends Object>(T Function(Injector i) inject,
{bool export = false}) {
return Bind<T>(inject,
isSingleton: true, isLazy: false, isScoped: false, export: export);
}