Instance class

Annotate class as custom mvvm instance

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

Constructors

Instance.new({Type inputType = Map<String, dynamic>, bool singleton = false, bool isLazy = false, int? initializationOrder, bool isAsync = false, bool awaitInitialization = false, bool part = 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
part bool
Flag indicating that this instance is part instance
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
singleton bool
Flag indicating is this instance singleton - defaults to false
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