IsolateTask<T, R> class abstract

Extend this class like so:

class FibonacciTask extends IsolateTask /*<int, int>*/ {
  FibonacciTask(int payload) : super(payload);

  @override
  int execute(int payload) {
    return fibonacci(payload);
  }
}

Constructors

IsolateTask()

Properties

hashCode int
The hash code for this object.
no setterinherited
id int
final
result ↔ R?
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

execute() → R
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

Constants

maxInt → const int