PromiseConstructor class
Represents the completion of an asynchronous operation
- Available extensions
- Annotations
-
- @JS()
- @staticInterop
Constructors
Properties
-
all
→ ({Future<
List> Function<T>(Iterable< $1, Future Function<FutureOr< values)T> >T extends Object>(T values) $2}) -
Available on PromiseConstructor, provided by the PromiseConstructor$Typings extension
Overload accessor: $1, $2no setter -
allSettled
→ ({Future Function<
T extends Object>(T values) $1, Future<List< Function<Object> >T>(Iterable< $2})FutureOr< values)T> > -
Available on PromiseConstructor, provided by the PromiseConstructor$Typings extension
Overload accessor: $1, $2no setter -
any
→ ({Future Function<
T extends Object>(T values) $1, Future Function<T>(Iterable< $2})FutureOr< values)T> > -
Available on PromiseConstructor, provided by the PromiseConstructor$Typings extension
Overload accessor: $1, $2no setter - hashCode → int
-
The hash code for this object.
no setterinherited
-
race
→ ({Future Function<
T>(Iterable< $1, Future Function<FutureOr< values)T> >T extends Object>(T values) $2}) -
Available on PromiseConstructor, provided by the PromiseConstructor$Typings extension
Overload accessor: $1, $2no setter -
resolve
→ ({Future<
void> Function() $1, Future Function<T>(T value) $2, Future Function<T>(FutureOr< $3})T> value) -
Available on PromiseConstructor, provided by the PromiseConstructor$Typings extension
Overload accessor: $1, $2, $3no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited