CounterButton constructor

const CounterButton({
  1. Key? key,
  2. required int count,
  3. required ValueChanged<int> onChange,
  4. required bool loading,
  5. Color countColor = Colors.black,
  6. Icon addIcon = const Icon(Icons.add),
  7. Icon removeIcon = const Icon(Icons.remove),
  8. Color buttonColor = Colors.black,
  9. Color progressColor = Colors.black,
})

Constructor for the counter button

Implementation

const CounterButton(
    {Key? key,
    required this.count,
    required this.onChange,
    required this.loading,
    this.countColor = Colors.black,
    this.addIcon = const Icon(Icons.add),
    this.removeIcon = const Icon(Icons.remove),
    this.buttonColor = Colors.black,
    this.progressColor = Colors.black})
    : super(key: key);