Promise<T> class
- Available extensions
- Annotations
-
- @JS('Promise')
- @staticInterop
Constructors
- Promise.new(void executor(void resolve(T result), Function reject))
-
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- 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
-
then(
JSFunction onFulfilled, [JSFunction? onRejected]) → Promise< T> -
Available on Promise<
T> , provided by the PromiseExtension extension -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited