Singleton class

Classes annotated with @Singleton will generate registerSingleton function

Inheritance

Constructors

Singleton({bool? signalsReady, List<Type>? dependsOn, Type? as, List<String>? env})
default constructor
const

Properties

as Type?
The type to bind your implementation to, typically, an abstract class which is implemented by the annotated class.
finalinherited
dependsOn List<Type>?
passed to dependsOn property in registerSingleton function
final
env List<String>?
an alternative way to pass env keys instead of annotating the element with @Environment
finalinherited
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
signalsReady bool?
passed to singlesReady property in registerSingleton function
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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