addItem static method
Implementation
static Future<void> addItem(
String name,
String referenceId,
String sku,
String type,
double unitPrice,
double tax,
double discount,
int quantity) async {
try {
await platform.invokeMethod('addItem', <String, dynamic>{
'name': name,
'referenceId': referenceId,
'sku': sku,
'type': type,
'unitPrice': unitPrice,
'tax': tax,
'discount': discount,
'quantity': quantity,
});
} on PlatformException catch (e) {
showToast(e.message.toString());
}
}