To class base
To == go_router.GoRoute 官方的go_router内部略显复杂,且没有我们想要的layout等功能,所以自定一个简化版的to_router
Constructors
-
To(String part, {PageBuilder? page, LayoutBuilder? layout, LayoutRetry layoutRetry = LayoutRetry.none, List<
To> children = const []})
Properties
-
ancestors
→ List<
To> -
no setter
-
children
→ List<
To> -
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isRoot → bool
-
no setter
- layout → LayoutBuilder?
-
final
- layoutRetry → LayoutRetry
-
final
- page → PageBuilder?
-
final
- part → String
-
final
- root → To
-
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- uriTemplate → String
-
no setter
Methods
-
match(
Uri uri) → ToUri -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toList(
{bool includeThis = true, bool where(To path)?, Comparator< To> ? sortBy}) → List<To> - tree to list /a
-
toString(
{bool deep = false}) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited