setShippingAmount static method

Future<void> setShippingAmount(
  1. double amount
)

Implementation

static Future<void> setShippingAmount(double amount) async {
  try {
    await platform.invokeMethod(
        'setShippingAmount', <String, dynamic>{'amount': amount});
  } on PlatformException catch (e) {
    showToast(e.message.toString());
  }
}