compute<Q, R> abstract method

Future<R> compute<Q, R>(
  1. IsolateCallback<Q, R> callback,
  2. Q message, {
  3. String? debugLabel,
})

The compute function, used in the same way as Flutter's compute function, but for a long lived isolate.

Implementation

Future<R> compute<Q, R>(
  IsolateCallback<Q, R> callback,
  Q message, {
  String? debugLabel,
});