BaseApp class

Inheritance
Available extensions

Constructors

BaseApp({Key? key, required WidgetBuilder builder, GlobalKey<ScaffoldMessengerState>? scaffoldMessengerKey, GlobalKey<NavigatorState>? navigatorKey, ValueCallback<BuildContext>? initState, ValueCallback<BuildContext>? didChangeDependencies, ValueCallbackFutureTV<bool, BuildContext>? didPopRoute, ValueTwoCallbackFutureT<bool, BuildContext, RouteInformation>? didPushRouteInformation, ValueCallback<BuildContext>? didChangeMetrics, ValueCallback<BuildContext>? didChangeTextScaleFactor, ValueCallback<BuildContext>? didChangePlatformBrightness, ValueTwoCallback<BuildContext, List<Locale>?>? didChangeLocales, ValueTwoCallback<BuildContext, AppLifecycleState>? didChangeAppLifecycleState, ValueCallbackFutureTV<AppExitResponse, BuildContext>? didRequestAppExit, ValueCallback<BuildContext>? didHaveMemoryPressure, ValueCallback<BuildContext>? didChangeAccessibilityFeatures, ValueTwoCallback<BuildContext, BaseApp>? didUpdateWidget, ValueCallback<BuildContext>? deactivate, ValueCallback<BuildContext>? dispose, ValueCallback<BuildContext>? onInactive, ValueCallback<BuildContext>? onPaused, ValueCallback<BuildContext>? onDetached, ValueCallback<BuildContext>? onResumed, ValueCallback<BuildContext>? onHidden})
const

Properties

builder WidgetBuilder
builder
final
deactivate ValueCallback<BuildContext>?
deactivate
final
didChangeAccessibilityFeatures ValueCallback<BuildContext>?
didChangeAccessibilityFeatures
final
didChangeAppLifecycleState ValueTwoCallback<BuildContext, AppLifecycleState>?
didChangeAppLifecycleState
final
didChangeDependencies ValueCallback<BuildContext>?
didChangeDependencies
final
didChangeLocales ValueTwoCallback<BuildContext, List<Locale>?>?
didChangeLocales
final
didChangeMetrics ValueCallback<BuildContext>?
didChangeMetrics
final
didChangePlatformBrightness ValueCallback<BuildContext>?
didChangePlatformBrightness
final
didChangeTextScaleFactor ValueCallback<BuildContext>?
didChangeTextScaleFactor
final
didHaveMemoryPressure ValueCallback<BuildContext>?
didHaveMemoryPressure
final
didPopRoute ValueCallbackFutureTV<bool, BuildContext>?
didPopRoute
final
didPushRouteInformation ValueTwoCallbackFutureT<bool, BuildContext, RouteInformation>?
didPushRouteInformation
final
didRequestAppExit ValueCallbackFutureTV<AppExitResponse, BuildContext>?
didRequestAppExit
final
didUpdateWidget ValueTwoCallback<BuildContext, BaseApp>?
didUpdateWidget
final
dispose ValueCallback<BuildContext>?
dispose
final
hashCode int
The hash code for this object.
no setterinherited
initState ValueCallback<BuildContext>?
initState
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
set navigatorKey
final
onDetached ValueCallback<BuildContext>?
应用程序可见,前台 从后台切换前台 Application visibility, foreground from background to foreground
final
onHidden ValueCallback<BuildContext>?
hidden
final
onInactive ValueCallback<BuildContext>?
处于这种状态的应用程序应该假设它们可能在任何时候暂停。前台 Applications in this state should assume that they may pause at any time. The front desk
final
onPaused ValueCallback<BuildContext>?
应用程序不可见,后台 切换后台 Application not visible, background switch background
final
onResumed ValueCallback<BuildContext>?
resumed
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scaffoldMessengerKey GlobalKey<ScaffoldMessengerState>?
set scaffoldMessengerKey
final

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() State<BaseApp>
Creates the mutable state for this widget at a given location in the tree.
override
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
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
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
toStringDeep({String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug}) 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