addToCart method

  1. @override
Future<void> addToCart(
  1. String id,
  2. String name,
  3. double quantity,
  4. double price,
)
override

Implementation

@override
Future<void> addToCart(
    String id, String name, double quantity, double price) async {
  await methodChannel.invokeMethod('addToCart',
      {'id': id, 'name': name, 'price': price, 'quantity': quantity});
}