BasePageRoute<T extends Object?> class
页面路由描述基类 主要是为了在内部处理动画相关 Created by Arthur on 9/3/2022.
- Inheritance
-
- Object
- RouteSettings
- Page
- BasePageRoute
Constructors
- BasePageRoute({required Widget child, required RouteTransitionBuilder? transitionBuilder, LocalKey? key, String? name, Object? arguments, String? restorationId})
Properties
- arguments → Object?
-
The arguments passed to this route.
finalinherited
- canPop → bool
-
When false, blocks the associated route from being popped.
finalinherited
- child → Widget
-
页面内容
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").
finalinherited
- onPopInvoked → PopInvokedWithResultCallback
-
Called after a pop on the associated route was handled.
finalinherited
- restorationId → String?
-
Restoration ID to save and restore the state of the Route configured by
this page.
finalinherited
-
resultCompleter
→ Completer<
T> -
当前挂起异步
创建的时候已经指定T为PageRouteResult<泛型>
final
- route ↔ PageRoute
-
路由
latefinal
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- transitionBuilder → RouteTransitionBuilder?
-
模拟转场动画相关
final
Methods
-
canUpdate(
Page other) → bool -
Whether this page can be updated with the
other
page.inherited -
createRoute(
BuildContext context) → Route -
默认使用Android材料设计路由
页面的入口过渡将路线向上滑动并淡入
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited