sendToProviderWithMap method
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>());
}