BaseStatelessPage<T extends PageArgument?> class
abstract
不可变状态页面基础组件 参数存放在data Created by Arthur on 14/3/2022.
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatelessWidget
- BaseStatelessPage
Constructors
- BaseStatelessPage(AppRouteArgument argument, Key key)
Properties
- argument → AppRouteArgument
-
基础参数类
final
- context → BuildContext?
-
获取BuildContext
no setter
-
contexts
→ List<
BuildContext?> -
上下文 需要构建完第一帧才能获取
final
- currentKey ← Key
-
设置当前Key用户后续判断
no getterinherited
- data → T?
-
页面参数
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isTopPage → bool
-
当前路由是否栈顶
no setterinherited
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- stackLocal → int
-
判断页面当前处于栈内位置
如果不存在则为-1
no setterinherited
-
systemUI
→ List<
SystemUiOverlay> ? -
系统UI配置
如:状态栏、导航栏等
no setterinherited
- systemUiOverlayStyle → SystemUiOverlayStyle?
-
系统UI风格
从当前最近父类开始找
no setterinherited
Methods
-
build(
BuildContext context) → Widget -
Describes the part of the user interface represented by this widget.
override
-
buildWidget(
BuildContext context) → Widget - 构建内容 由于StatelessWidget内部build被重写
-
createElement(
) → StatelessElement -
Creates a StatelessElement to manage this widget's location in the tree.
inherited
-
debugDescribeChildren(
) → List< DiagnosticsNode> -
Returns a list of DiagnosticsNode objects describing this node's
children.
inherited
-
debugFillProperties(
DiagnosticPropertiesBuilder properties) → void -
Add additional properties associated with the node.
inherited
-
init(
) → void - 初始化
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onFirstBuildFinish(
) → void - 第一帧 页面构建完成
-
onTranslateAnimationFinish(
) → void - 转场动画完成
-
toDiagnosticsNode(
{String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode -
Returns a debug representation of the object that is used by debugging
tools and by DiagnosticsNode.toStringDeep.
inherited
-
toString(
{DiagnosticLevel minLevel = DiagnosticLevel.info}) → String -
A string representation of this object.
inherited
-
toStringDeep(
{String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug, int wrapWidth = 65}) → String -
Returns a string representation of this node and its descendants.
inherited
-
toStringShallow(
{String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String -
Returns a one-line detailed description of the object.
inherited
-
toStringShort(
) → String -
A short, textual description of this widget.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited