getOrderDetail static method

Future<String> getOrderDetail(
  1. String orderId
)

Implementation

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