LifecycleHookState class

Inheritance
Implemented types

Constructors

LifecycleHookState()

Properties

context → BuildContext
Equivalent of State.context for HookState
no setterinherited
currentLifecycleState → AppLifecycleState?
no setter
debugHasShortDescription → bool
Whether or not the devtool description should skip debugFillProperties.
no setterinherited
debugLabel → String?
A label used by the devtool to show the state of a Hook.
no setterinherited
debugSkipValue → bool
A flag to prevent showing debugValue in the devtool for a Hook that returns nothing.
no setterinherited
debugValue → Object?
The value shown in the devtool.
no setterinherited
hashCode → int
The hash code for this object.
no setterinherited
hook → LifecycleHook
Equivalent of State.widget for HookState.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

build(BuildContext context) → void
Called everytime the HookState is requested.
override
deactivate() → void
Equivalent of State.deactivate for HookState.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
didChangeAccessibilityFeatures() → void
Called when the system changes the set of currently active accessibility features.
override
didChangeAppLifecycleState(AppLifecycleState state) → void
Called when the system puts the app in the background or returns the app to the foreground.
override
didChangeLocales(List<Locale>? locales) → void
Called when the system tells the app that the user's locale has changed. For example, if the user changes the system language settings.
override
didChangeMetrics() → void
Called when the application's dimensions change. For example, when a phone is rotated.
override
didChangePlatformBrightness() → void
Called when the platform brightness changes.
override
didChangeTextScaleFactor() → void
Called when the platform's text scale factor changes.
override
didChangeViewFocus(ViewFocusEvent event) → void
Called whenever the PlatformDispatcher receives a notification that the focus state on a view has changed.
override
didHaveMemoryPressure() → void
Called when the system is running low on memory.
override
didPopRoute() → Future<bool>
Called when the system tells the app to pop the current route, such as after a system back button press or back gesture.
override
didPushRoute(String route) → Future<bool>
Called when the host tells the application to push a new route onto the navigator.
override
didPushRouteInformation(RouteInformation routeInformation) → Future<bool>
Called when the host tells the application to push a new RouteInformation and a restoration state onto the router.
override
didRequestAppExit() → Future<AppExitResponse>
Called when a request is received from the system to exit the application.
override
didUpdateHook(LifecycleHook oldHook) → void
Equivalent of State.didUpdateWidget for HookState.
inherited
dispose() → void
Equivalent of State.dispose for HookState.
override
handleCancelBackGesture() → void
Called when a predictive back gesture is canceled, indicating that no navigation should occur.
override
handleCommitBackGesture() → void
Called when a predictive back gesture is finished successfully, indicating that the current route should be popped.
override
handleStartBackGesture(PredictiveBackEvent backEvent) → bool
Called at the start of a predictive back gesture.
override
handleStatusBarTap() → void
Called when the user taps the status bar on iOS, to scroll a scroll view to the top.
inherited
handleUpdateBackGestureProgress(PredictiveBackEvent backEvent) → void
Called when a predictive back gesture moves.
override
initHook() → void
Equivalent of State.initState for HookState.
override
markMayNeedRebuild() → void
Mark the associated HookWidget as potentially needing to rebuild.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onDetached() → void
reassemble() → void
In addition to this method being invoked, it is guaranteed that the build method will be invoked when a reassemble is signaled. Most widgets therefore do not need to do anything in the reassemble method.
inherited
setState(VoidCallback fn) → void
Equivalent of State.setState for HookState.
inherited
shouldRebuild() → bool
Called before a build triggered by markMayNeedRebuild.
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