sendToProviderWithMap method

Future<JavaScriptMessage> sendToProviderWithMap({
  1. required Enum method,
  2. Map<String, dynamic>? params,
})

Implementation

Future<JavaScriptMessage> sendToProviderWithMap(
    {required Enum method, Map<String, dynamic>? params}) async {
  MagicRPCRequest<Map<String, dynamic>> request =
      MagicRPCRequest<Map<String, dynamic>>(
          method: toShortString(method), params: params ?? {});
  return provider.send(
      request: request, completer: Completer<JavaScriptMessage>());
}