AsyncScope class final AsyncScope

Inheritance

Constructors

AsyncScope({Key? key, Object? tag, Object? scopeKey, required Stream<AsyncScopeInitState> init(BuildContext context), required FutureOr<void> dispose(), Widget waitingBuilder(BuildContext context)?, required Widget initBuilder(BuildContext context), required Widget builder(BuildContext context), required Widget errorBuilder(BuildContext context, Object error, StackTrace stackTrace)})
const

Properties

builder Widget Function(BuildContext context)
final
child Widget
The widget below this widget in the tree.
finalinherited
dispose FutureOr<void> Function()
final
errorBuilder Widget Function(BuildContext context, Object error, StackTrace stackTrace)
final
hashCode int
The hash code for this object.
no setterinherited
init Stream<AsyncScopeInitState> Function(BuildContext context)
final
initBuilder Widget Function(BuildContext context)
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
onScopeKeyTimeout → void Function()?
finalinherited
onWaitForChildrenTimeout → void Function()?
finalinherited
pauseAfterInitialization Duration?
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scopeKey Object?
finalinherited
scopeKeyTimeout Duration?
finalinherited
tag Object?
finalinherited
waitForChildrenTimeout Duration?
finalinherited
waitingBuilder Widget Function(BuildContext context)?
final

Methods

buildOnError(BuildContext context, Object error, StackTrace stackTrace) Widget
override
buildOnInitializing(BuildContext context) Widget
override
buildOnReady(BuildContext context) Widget
override
buildOnWaiting(BuildContext context) Widget?
override
createElement() InheritedElement
Inflates this configuration to a concrete instance.
inherited
createScopeElement() → _AsyncScopeElement<AsyncScope>
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
disposeAsync() FutureOr<void>
override
initAsync(BuildContext context) Stream<AsyncScopeInitState>
override
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, 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({bool showHashCode = false}) String
A short, textual description of this widget.
inherited
updateShouldNotify(covariant ScopeWidgetCore<AsyncScope, _AsyncScopeElement<AsyncScope>> oldWidget) bool
Whether the framework should notify widgets that inherit from this widget.
inherited

Operators

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

Static Methods

maybeOf(BuildContext context, {required bool listen}) AsyncScopeContext<AsyncScope>?
override
of(BuildContext context, {required bool listen}) AsyncScopeContext<AsyncScope>
override
select<V extends Object?>(BuildContext context, V selector(AsyncScopeContext<AsyncScope> context)) → V
override