Movatterモバイル変換


[0]ホーム

URL:


menu
  1. async package
  2. documentation
  3. async.dart
  4. DelegatingFuture<T> class
DelegatingFuture<T> class

DelegatingFuture<T> class

A wrapper that forwards calls to aFuture.

Implemented types
Implementers
Available extensions

Constructors

DelegatingFuture(Future<T>_future)

Properties

hashCodeint
The hash code for this object.
no setterinherited
runtimeTypeType
A representation of the runtime type of the object.
no setterinherited
toJSJSPromise<T>

Available onFuture<T>, provided by theFutureOfJSAnyToJSPromise extension

AJSPromise that either resolves with the result of the completedFuture or rejects with an object that contains its error.
no setter
toJSJSPromise<JSAny?>

Available onFuture<void>, provided by theFutureOfVoidToJSPromise extension

AJSPromise that either resolves once thisFuture completes or rejectswith an object that contains its error.
no setter

Methods

asStream()Stream<T>
Creates aStream containing the result of this future.
override
catchError(FunctiononError, {booltest(Objecterror)?})Future<T>
Handles errors emitted by thisFuture.
override
ignore()→ void

Available onFuture<T>, provided by theFutureExtensions extension

Completely ignores this future and its result.
noSuchMethod(Invocationinvocation)→ dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onError<E extendsObject>(FutureOr<T>handleError(Eerror,StackTracestackTrace), {booltest(Eerror)?})Future<T>

Available onFuture<T>, provided by theFutureExtensions extension

Handles errors on this future.
then<S>(FutureOr<S>onValue(T), {Function?onError})Future<S>
Register callbacks to be called when this future completes.
override
timeout(DurationtimeLimit, {FutureOr<T>onTimeout()?})Future<T>
Stop waiting for this future aftertimeLimit has passed.
override
toString()String
A string representation of this object.
inherited
whenComplete(FutureOraction())Future<T>
Registers a function to be called when this future completes.
override

Operators

operator ==(Objectother)bool
The equality operator.
inherited

Static Methods

typed<T>(Futurefuture)Future<T>
Creates a wrapper which throws iffuture's value isn't an instance ofT.
  1. async package
  2. documentation
  3. async
  4. DelegatingFuture<T> class
async library

[8]ページ先頭

©2009-2026 Movatter.jp