getSendData method

  1. @override
Future<String?> getSendData()
override

Implementation

@override
Future<String?> getSendData() async {
  String? response;
  try {
    response = await mirrorFlyMethodChannel.invokeMethod<String>('sendData');
    debugPrint("sendData Result ==> $response");
    return response;
  } on PlatformException catch (e) {
    debugPrint("Platform Exception ===> $e");
    rethrow;
  } on Exception catch (error) {
    debugPrint("Exception ==> $error");
    rethrow;
  }
}