Constructors
-
AsyncScopeBase({Key? key, Object? tag, Object? scopeKey, Duration? scopeKeyTimeout, void onScopeKeyTimeout()?, Duration? initCancellationTimeout, void onInitCancellationTimeout()?, Duration? disposeScopeTimeout, void onDisposeScopeTimeout()?, Duration? waitForChildrenTimeout, void onWaitForChildrenTimeout()?, Duration? pauseAfterInitialization, Widget child = const _NullWidget()})
-
Creates an asynchronous scope.
const
Methods
-
buildOnError(BuildContext context, Object error, StackTrace stackTrace, Object? progress)
→ Widget
-
Built when the initialization failed.
-
buildOnProgress(BuildContext context, Object? progress)
→ Widget
-
Built while the initialization is running.
-
buildOnReady(BuildContext context)
→ Widget
-
Built once the scope is ready.
-
buildOnWaiting(BuildContext context)
→ Widget?
-
Built while waiting for a
scopeKey and for the first event.
-
createElement()
→ InheritedElement
-
Inflates this configuration to a concrete instance.
inherited
-
createScopeElement()
→ _AsyncScopeElement<W>
-
Creates the element of this scope.
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
-
disposeScope()
→ FutureOr<void>
-
Releases what initScope acquired.
-
initScope(BuildContext context, ScopeInitContext ctx)
→ Future<void>
-
The initialization.
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
onMount(BuildContext context)
→ void
-
Called when the scope is mounted, before the initialization starts.
-
onUnmount()
→ void
-
Called synchronously when the scope leaves the tree.
-
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<W, _AsyncScopeElement<W>> oldWidget)
→ bool
-
Whether the framework should notify widgets that inherit from this widget.
inherited