IsolateCallback<Q, R> typedef
IsolateCallback<Q, R> =
FutureOr<R> Function(Q message)
Signature for the callback passed to StatefulIsolate.compute.
Instances of IsolateCallback must be functions that can be sent to an isolate.
For more information on how this can be used, take a look at foundation.ComputeCallback from the official Flutter documentation.
Implementation
typedef IsolateCallback<Q, R> = FutureOr<R> Function(Q message);