ThrioModule mixin

Properties

hashCode int
The hash code for this object.
no setterinherited
isLoaded bool
Returns whether the module is loaded.
getter/setter pair
key String
A Key is an identifier for a module.
no setter
moduleContext ModuleContext
ModuleContext of current module.
no setter
modules Map<String, ThrioModule>
final
getter/setter pair
parent ThrioModule?
Get parent module.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

initModule() → 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.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onModuleAsyncInit(ModuleContext moduleContext) → void
A function for module asynchronous initialization.
onModuleInit(ModuleContext moduleContext) → void
A function for module initialization.
onModuleLoading(ModuleContext moduleContext) Future
Called when the first page in the module is about to be pushed.
onModuleRegister(ModuleContext moduleContext) → void
A function for registering submodules.
onModuleUnloading(ModuleContext moduleContext) Future
Called when the last page in the module is closed.
registerModule(ThrioModule module, ModuleContext moduleContext) → void
A function for registering a module, which will call the onModuleRegister function of the module.
toString() String
A string representation of this object.
override

Operators

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

Static Methods

contains(String url) bool
Returns true if the url has been registered.
get<T>({String? url, String? key}) → T?
Get instance by T, url and key.
gets<T>({required String url}) Iterable<T>
Get instances by T and url.
init(ThrioModule rootModule, [String? entrypoint]) → void
Modular initialization function, needs to be called once during App initialization.