IsolateOnEventCallback<R, P> typedef
IsolateOnEventCallback<R, P> =
FutureOr<R> Function(IsolateManagerController<R, P> controller, P message)
A callback for the IsolateManagerFunction.customFunction that will be executed every time
the message
is received from the sendMessage
or execute
method.
Implementation
typedef IsolateOnEventCallback<R, P> = FutureOr<R> Function(
IsolateManagerController<R, P> controller,
P message,
);