Application<S, T extends AbstractTheme> class

Inheritance

Constructors

Application({required S state, required String title, required T initialTheme, Screen? initialScreen, required List<Screen> screens, Widget createHomeWidget()?, TransitionManager? transitionManager})

Properties

createHomeWidget Widget Function()
final
hashCode int
The hash code for this object.
no setterinherited
history HistoryManager
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
screens List<Screen>
final
state → S
final
theme ↔ T
getter/setter pair
title String
final
transitionManager TransitionManager
final

Methods

back() Future<bool>
createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createNavIcon(Nav nav) Widget
createState() State<StatefulWidget>
Creates the mutable state for this widget at a given location in the tree.
override
createTransition(Screen? previous, Screen current, Direction? direction, bool firstWidget, Widget child, Animation<double> animation) Widget
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
direction(Screen? s1, Screen s2) Direction?
getTransitionDuration(Screen? previous, Screen current, Direction? direction) Duration
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
push(ScreenState state) Future<void>
pushScreen(Screen screen) Future<void>
reloadAll() → void
replace(ScreenState state) Future<void>
replaceScreen(Screen screen) Future<void>
setNavBadge(Nav nav, int value) → 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}) 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

Static Properties

instance ApplicationState
no setter
final
staticContext BuildContext?
no setter

Static Methods

of(BuildContext context, {bool root = false}) ApplicationState?