Delay class

Returns an effect descriptor to block execution for duration and return value.

Inheritance

Constructors

Delay(Duration duration, {dynamic value, Result? result})
Creates an instance of a Delay effect.

Properties

duration Duration
Duration to delay
final
hashCode int
The hash code for this object.
no setterinherited
result Result?
Result after effect is resolved.
getter/setter pairinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value → dynamic
Value to return after delay
final

Methods

getDefinition() Map<String, dynamic>
Returns all properties of effect as a dictionary object
override
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