MuffinPage<T> class

page 支持多级 home[discover,minesettings]

Inheritance

Constructors

MuffinPage({required String name, required MuffinPageBuilder page, Map<String, String>? parameters, Object? arguments, bool? participatesInRootNavigator, List<MuffinPage> children = const <MuffinPage>[], bool preventDuplicates = true, MuffinPage? unknownRoute})

Properties

arguments Object?
The arguments passed to this route.
final
children List<MuffinPage>
final
hashCode int
The hash code for this object.
no setterinherited
key LocalKey?
The key associated with this page.
finalinherited
name String
The name of the route (e.g., "/settings").
final
page MuffinPageBuilder
final
parameters Map<String, String>?
final
participatesInRootNavigator bool?
参与根导航
final
path PathDecoded
path匹配
final
preventDuplicates bool
final
restorationId String?
Restoration ID to save and restore the state of the Route configured by this page.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
unknownRoute MuffinPage?
final

Methods

canUpdate(Page other) bool
Whether this page can be updated with the other page.
inherited
copy({MuffinPageBuilder? page, Map<String, String>? parameters, Object? arguments, String? name, List<MuffinPage>? children, MuffinPage? unknownRoute, bool? participatesInRootNavigator}) MuffinPage<T>
createRoute(BuildContext context) Route<T>
Creates the Route that corresponds to this page.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

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