UiRouter class

Router for App UI

Constructors

UiRouter({Path rootPath = '/', required Map<Path, UiPage> pages, Map<Path, UiDialog> dialogs = const {}})
Constructor

Properties

dialogs Map<Path, UiDialog>
final
hashCode int
The hash code for this object.
no setterinherited
pages Map<Path, UiPage>
final
pathStack List<String>
current path stack
no setter
rootPath Path
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
state ValueNotifier<UiRouterState>
final

Methods

close(UiCall call) → void
Close dialog
loading({required String label, required dynamic task()}) Future<void>
Show loading with a task
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
open(String path) UiCall
Open dialog
pop({String? until}) → void
Back page (until: patternPath)
push(String realPath) → void
Go to the next page
toString() String
A string representation of this object.
inherited

Operators

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