ResponseHandler typedef

ResponseHandler = void Function(Map<String, Object?> message)

Handles an incoming response to a request we sent (client role). Receives the full decoded message, including its id and either result or error.

Implementation

typedef ResponseHandler = void Function(Map<String, Object?> message);