singleCallbackPortWithoutTimeout<P> function

SendPort singleCallbackPortWithoutTimeout<P>(
  1. void callback(
    1. P response
    )
)

Same as singleResponseFuture, but without timeout, this allows us not to require a nullable value in the callback

Implementation

SendPort singleCallbackPortWithoutTimeout<P>(
    void Function(P response) callback) {
  return singleCallbackPortWithTimeout<P?>(
    (response) => callback(response as P),
    timeoutValue: null,
  );
}