UrlRouter class

Abstract class for url-based routing Responsibilities: Identify the appropriate page router function to call Identify and handle urls that are not handled by the app

Constructors

UrlRouter()

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

getScreenWidget({BuildContext context, String url, Map<String, String> bootstrapInformation, Map<String, String> heroTags}) Widget
Helper function to convert a url to a widget Can be used directly from screens Can also be utilised by loadUrl url The url to navigate to bootstrapInformation Information that is used to bootstrap the next page, (image urls, titles etc.) heroTags Hero tags for widgets
loadUrl({BuildContext context, String url, Map<String, String> bootstrapInformation, Map<String, String> heroTags}) → void
Main function for this app url The url to navigate to bootstrapInformation Information that is used to bootstrap the next page, (image urls, titles etc.) heroTags Hero tags for widgets
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
inherited

Operators

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