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