PromiseConstructor class

Represents the completion of an asynchronous operation

Available extensions
Annotations
  • @JS()
  • @staticInterop

Constructors

PromiseConstructor()

Properties

all → ({Future<List> Function<T>(Iterable<FutureOr<T>> values) $1, Future Function<T extends Object>(T values) $2})

Available on PromiseConstructor, provided by the PromiseConstructor$Typings extension

Overload accessor: $1, $2
no setter
allSettled → ({Future Function<T extends Object>(T values) $1, Future<List<Object>> Function<T>(Iterable<FutureOr<T>> values) $2})

Available on PromiseConstructor, provided by the PromiseConstructor$Typings extension

Overload accessor: $1, $2
no setter
any → ({Future Function<T extends Object>(T values) $1, Future Function<T>(Iterable<FutureOr<T>> values) $2})

Available on PromiseConstructor, provided by the PromiseConstructor$Typings extension

Overload accessor: $1, $2
no setter
hashCode int
The hash code for this object.
no setterinherited
race → ({Future Function<T>(Iterable<FutureOr<T>> values) $1, Future Function<T extends Object>(T values) $2})

Available on PromiseConstructor, provided by the PromiseConstructor$Typings extension

Overload accessor: $1, $2
no setter
resolve → ({Future<void> Function() $1, Future Function<T>(T value) $2, Future Function<T>(FutureOr<T> value) $3})

Available on PromiseConstructor, provided by the PromiseConstructor$Typings extension

Overload accessor: $1, $2, $3
no 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

Static Properties

reject Future<T> Function<T>([dynamic])
getter/setter pair