cancelOrder static method
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;
}
}