RoutesBase class abstract

Base class for route declarations

Must be extented by Routes, Dialogs, BottomSheets or any custom route container

Constructors

RoutesBase()

Properties

hashCode → int
The hash code for this object.
no setterinherited
regexHandlers → Map<String, LinkMapper>
Map of regex link mappers Used if no LinkHandler found in routeLinkHandlers
final
routeLinkHandlers → Map<String, dynamic>
Handlers for url paths and queries
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

findBestMatch(Map selectedRule, Map<String, dynamic> decisionSubroutes) → dynamic
Finds best match for given rule in possible subroutes
findDeclarationObject(List<String> segments) → dynamic
Finds declaration of query mappers for given segments list
findPossibleRoutes(Map<String, List<String>> query, String fragment, Map possibleSubroutes) → Map<String, int>
Rates all route handlers for given query and possible subroutes
Tries to find LinkHandler in routeLinkHandlers
handlerForRegex(String url) → LinkHandler?
Finds handler given url in regexHandlers
initializeLinkHandlers() → void
Adds all routes to routeLinkHandlers and regexHandlers
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 other) → bool
The equality operator.
inherited