ModuleParamScheme mixin

Superclass constraints

Properties

hashCode → int
The hash code for this object.
no setterinherited
isLoaded ↔ bool
Returns whether the module is loaded.
getter/setter pairinherited
key → String
A Key is an identifier for a module.
no setterinherited
moduleContext → ModuleContext
ModuleContext of current module.
no setterinherited
modules → Map<String, ThrioModule>
finalinherited
getter/setter pairinherited
paramStreamCtrls → Map<Comparable, Set<StreamController>>
final
parent → ThrioModule?
Get parent module.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
url → String
Get route url by join all route node's name.
no setterinherited

Methods

getParam<T>(Comparable key) → T?
Gets param by key & T.
hasParamScheme<T>(Comparable key) → bool
initModule() → Future<void>
A function for module initialization that will call the onModuleInit, onPageBuilderRegister, onRouteTransitionsBuilderRegister, onPageObserverRegister onRouteObserverRegister, onJsonSerializerRegister, onJsonDeserializerRegister, onProtobufSerializerRegister, onProtobufDeserializerRegister and onModuleAsyncInit methods of all modules.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onModuleAsyncInit(ModuleContext moduleContext) → Future<void>
A function for module asynchronous initialization.
inherited
onModuleInit(ModuleContext moduleContext) → Future<void>
A function for module initialization.
inherited
onModuleLoading(ModuleContext moduleContext) → Future<void>
Called when the first page in the module is about to be pushed.
inherited
onModuleRegister(ModuleContext moduleContext) → void
A function for registering submodules.
inherited
onModuleUnloading(ModuleContext moduleContext) → Future<void>
Called when the last page in the module is closed.
inherited
onParam<T>(Comparable key, {T? initialValue}) → Stream<T?>?
Subscribe to a series of param by key.
onParamSchemeRegister(ModuleContext moduleContext) → void
A function for register a param scheme.
registerModule(ThrioModule module, ModuleContext moduleContext) → void
A function for registering a module, which will call the onModuleRegister function of the module.
inherited
registerParamScheme<T>(Comparable key) → VoidCallback
Register a param scheme for the module.
removeParam<T>(Comparable key) → T?
Remove param by key & T, if exists, return the value.
setParam<T>(Comparable key, T value) → bool
Sets param with key & value.
toString() → String
A string representation of this object.
inherited

Operators

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