SubModule class abstract

Inheritance

Constructors

SubModule({required BaseModule parentModule, required String route, bool overrideParentGuards = false, FutureOr<bool> guard(ModularHistory<PageParameters, ModularPage<PageParameters>> route, ModularRouterDelegate delegate)?})
const

Properties

guard → (FutureOr<bool> Function(ModularHistory<PageParameters, ModularPage<PageParameters>> route, ModularRouterDelegate delegate)?)
finalinherited
hashCode int
The hash code for this object.
no setteroverride
overrideParentGuards bool
final
parentModule BaseModule
final
route String
no setteroverride
routes Iterable<BaseModularRoute<PageParameters, ModularPage<PageParameters>>>
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
subModules Iterable<BaseModule>
no setteroverride

Methods

findRoute(String route) BaseModularRoute<PageParameters, ModularPage<PageParameters>>?
inherited
findRouteByPageType<TPageParameters extends PageParameters>(Type pageType) BaseModularRoute<TPageParameters, ModularPage<TPageParameters>>?
inherited
hasRoute(String route) bool
inherited
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 o) bool
The equality operator.
override