createOrder static method

Future<void> createOrder(
  1. String orderReferenceId,
  2. String description
)

Implementation

static Future<void> createOrder(
    String orderReferenceId, String description) async {
  try {
    await platform.invokeMethod('createOrder', <String, String>{
      'orderReferenceId': orderReferenceId,
      'description': description
    });
  } on PlatformException catch (e) {
    showToast(e.message.toString());
  }
}