sendDataToPlugin static method

void sendDataToPlugin(
  1. Map<String, dynamic> map
)

Implementation

static void sendDataToPlugin(Map<String, dynamic> map) async {
  print('new dat js ');
  try {
    await methodChannel.invokeMethod('receiveDataFromWeb', map);
  } on PlatformException catch (e) {
    print("Failed to send data to plugin: '${e.message}'.");
  }
}