setCurrency static method

Future<void> setCurrency(
  1. String newCurrency
)

Implementation

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