cancelOrder static method

Future<String> cancelOrder(
  1. String orderId,
  2. String jsonData
)

Implementation

static Future<String> cancelOrder(String orderId, String jsonData) async {
  try {
    final result = await platform.invokeMethod('cancelOrder',
        <String, String>{'orderId': orderId, 'cancelOrder': jsonData});
    return result;
  } on PlatformException catch (e) {
    showToast(e.message.toString());
    rethrow;
  }
}