SunnyInjector class

Mixed-in types
  • LoggingMixin

Constructors

SunnyInjector({Container? container, InjectorInit preInit = _noop, InjectorInit postInit = _noop})

Properties

hashCode int
The hash code for this object.
no setterinherited
log → Logger
no setterinherited
loggerName String
no setterinherited
postInit InjectorInit
final
preInit InjectorInit
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
unloading Future?
no setter

Methods

get<T>([String? name]) → T?
initialize(LifecycleInit init, {required NamedIconContainer icons}) Future<SunnyInjector>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
register<T>(T instance, {bool? isSilent}) → void
registerAs<S, T extends S>(T instance, {bool? isSilent}) → void
registerFactory<T>(T factory(Container c), {bool? isSilent}) → void
registerSingleton<T>(T factory(Container c), {bool? isSilent}) → void
reset() Future
resolve<T>([String? name]) → T?
shutdown() Future?
toString() String
A string representation of this object.
inherited
tryResolve<T>([String? name]) → T?
unregister<T>({bool? isSilent}) → void

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

of(BuildContext context) SunnyInjector