BaseBodyRouteSensing<T extends StatefulWidget> class abstract

拥有路由感应的body类 此类只作用于State中 TODO 后期修改成mixin的模式 Created by Arthur on 16/3/2022.

Inheritance
Mixed-in types
Implementers

Constructors

BaseBodyRouteSensing()

Properties

context BuildContext
The location in the tree where this widget builds.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
mounted bool
Whether this State object is currently in a tree.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
widget → T
The current configuration.
no setterinherited

Methods

activate() → void
Called when this object is reinserted into the tree after having been removed via deactivate.
inherited
build(BuildContext context) Widget
Describes the part of the user interface represented by this widget.
inherited
deactivate() → void
Called when this object is removed from the tree.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
didChangeAccessibilityFeatures() → void
-------- WidgetsBindingObserver监听方法 -------- 当前系统改变了一些访问性活动的回调
override
didChangeAppLifecycleState(AppLifecycleState state) → void
生命周期变化时回调 resumed:应用可见并可响应用户操作 inactive:用户可见,但不可响应用户操作 paused:已经暂停了,用户不可见、不可操作 suspending:应用被挂起,此状态IOS永远不会回调
override
didChangeDependencies() → void
Called when a dependency of this State object changes.
inherited
didChangeLocales(List<Locale>? locales) → void
用户本地设置变化时调用,如系统语言改变
override
didChangeMetrics() → void
应用尺寸改变时回调,例如旋转
override
didChangePlatformBrightness() → void
当平台亮度变化时调用
override
didChangeTextScaleFactor() → void
文字系数变化
override
didChangeViewFocus(ViewFocusEvent event) → void
Called whenever the PlatformDispatcher receives a notification that the focus state on a view has changed.
inherited
didHaveMemoryPressure() → void
低内存回调
override
didPop() → void
回到这个组件前
override
didPopNext() → void
回到这个组件
override
didPopRoute() Future<bool>
当系统告诉应用弹出当前路由时调用
override
didPush() → void
进入下个页面前
override
didPushNext() → void
进入下个页面
override
didPushRoute(String route) Future<bool>
当主机告诉应用程序将新路由推送到导航器时调用
override
didPushRouteInformation(RouteInformation routeInformation) Future<bool>
当主机告诉应用程序将新的RouteInformation和恢复状态推送到路由器时调用
override
didRequestAppExit() Future<AppExitResponse>
Called when a request is received from the system to exit the application.
inherited
didUpdateWidget(covariant T oldWidget) → void
Called whenever the widget configuration changes.
inherited
dispose() → void
Called when this object is removed from the tree permanently.
inherited
disposeRouteObserver() → void
销毁路由感应
handleCancelBackGesture() → void
Called when a predictive back gesture is canceled, indicating that no navigation should occur.
inherited
handleCommitBackGesture() → void
Called when a predictive back gesture is finished successfully, indicating that the current route should be popped.
inherited
handleStartBackGesture(PredictiveBackEvent backEvent) bool
Called at the start of a predictive back gesture.
inherited
handleUpdateBackGestureProgress(PredictiveBackEvent backEvent) → void
Called when a predictive back gesture moves.
inherited
initState() → void
Called when this object is inserted into the tree.
inherited
launchRouteObserver() → void
启动路由感应
launchWidgetBinding() → void
-------- RouteAware路由方法 -------- 绑定组件观察者
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
reassemble() → void
Called whenever the application is reassembled during debugging, for example during hot reload.
inherited
setState(VoidCallback fn) → void
Notify the framework that the internal state of this object has changed.
inherited
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
toStringShort() String
A brief description of this object, usually just the runtimeType and the hashCode.
inherited

Operators

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