Instance class

Annotate class as custom kore instance

@Instance(inputType: String, isSingleton: true)
class NavigationWrapper extends BaseWrapper<Map<String, dynamic>> {}

Constructors

Instance({Type inputType = Map<String, dynamic>, bool isSingleton = false, bool isLazy = false, int? initializationOrder, bool isAsync = false, bool awaitInitialization = false, bool isPart = false})
const

Properties

awaitInitialization → bool
Flag indicating that initialization of
final
hashCode → int
The hash code for this object.
no setterinherited
initializationOrder → int?
Initialization order for this instance.
final
inputType → Type
Input type for this instance. Map by default
final
isAsync → bool
Flag indicating that this instance is async - has async initialization
final
isLazy → bool
Flag indicating is this instance lazy singleton - defaults to false.
final
isPart → bool
Flag indicating that this instance is part instance
final
isSingleton → bool
Flag indicating is this instance singleton - defaults to false
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

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