register abstract method

void register({
  1. required String method,
  2. required dynamic function(
    1. String,
    2. JsonRpcRequest, [
    3. TransportType
    ]),
  3. required ProtocolType type,
})

Implementation

void register({
  required String method,
  required Function(String, JsonRpcRequest, [TransportType]) function,
  required ProtocolType type,
});