UiRouter class

Constructors

UiRouter({required List<UiRoute> pages, List<UiDialog> dialogs = const [], String? redirect(UiState state)?})
factory

Properties

dialogNotifier → UiDialogNotifier
final
hashCode int
The hash code for this object.
no setterinherited
final
rootTheme → UiNavShellTheme
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
shellPath String
final
tabShellNotifiers List<UiTabShellNotifier>
final

Methods

closeDialog({String? name}) → void
Close dialog
getNavShellNotifier(String shellPath) → UiNavShellNotifier
getTabShellNotifier(String shellPath) → UiTabShellNotifier
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
openDialog(String name, {Map<String, String> params = const {}, void onEvent(String? value)?}) Future<UiAnswer>
Open dialog
pop({bool untilWhere(UiState state)?}) → void
Back page (until: path)
push(String path, {Map<String, String> pathParams = const {}, Map<String, String> queryParams = const {}}) → void
Go to the next page
replace(String path, {Map<String, String> pathParams = const {}, Map<String, String> queryParams = const {}}) → void
replace page stack
shell(String shellPath) UiRouter
Router for shell
toString() String
A string representation of this object.
inherited

Operators

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