ModuleContainer class abstract
记录和管理模块合集
Constructors
- ModuleContainer({String id = kAppContainerId})
-
factory
Properties
- generateRouteFactory → RouteFactory
-
模块路由生成器
使用这个时无需使用 generateRouters 内部已经包含
no setter
-
generateRouters
→ Map<
String, WidgetBuilder> -
当无法使用generateRouteFactory时使用,将会无法自定义路由和路由解析拦截 模块页面生成器
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
no setter
- pageRouteGenerator ← MPageRouteGenerator
-
设置默认的路由生成器
no getter
- parentContainerId ← String
-
no getter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
hasModule(
String moduleName) → bool - 是否存在 module
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
register(
Module module) → void -
registerModule(
Module module) → void - 保持兼容性
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited