updateOrderReference static method

Future<String> updateOrderReference(
  1. String orderId,
  2. String orderReferenceId
)

Implementation

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