ComponentRouter class

Mixed-in types

Constructors

ComponentRouter.new(Element parentElement, {bool doNotRenderSameRoute = true})

Properties

className String
no setteroverride
currentPath String
getter/setter pair
currentRoute Route?
getter/setter pair
doNotRenderSameRoute bool
final
hashCode int
The hash code for this object.
no setterinherited
parentElement → Element
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

dispose() Future<void>
handleRoute(String pattern, ComponentRouterHandleFunc matcherFunc, {bool? prefixMatch}) → void
init() Future<void>
logDebug(Object? arg) → void
inherited
logError(Object? arg) → void
inherited
logInfo(Object? arg) → void
inherited
logWarn(Object? arg) → void
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
render() Future<void>
Starts rendering current route.
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

attachOnPopStateEmitter(HTMLAnchorElement onClickElem) StreamSubscription<MouseEvent>
emitPopState(String uri) → void