JsonRpcNotificationResponse<T> constructor

const JsonRpcNotificationResponse<T>({
  1. String jsonrpc = JsonRpcRequest.version,
  2. required String method,
  3. required JsonRpcNotification<T> params,
})

Creates a JSON RPC notification.

{
  'jsonrpc': '2.0',
  'method': [method],
  'params': <T>,
}

Implementation

const JsonRpcNotificationResponse({
  this.jsonrpc = JsonRpcRequest.version,
  required this.method,
  required this.params,
});