CustomCounterButton constructor

const CustomCounterButton({
  1. Key? key,
  2. int currentValue = 0,
  3. Function? onChanged,
  4. Color? iconLeftColor,
  5. Color? iconRightColor,
  6. bool openCalc = true,
  7. double? height = 48,
  8. double? width = 128,
  9. int? flex,
  10. EdgeInsets? margin,
  11. EdgeInsets? padding = const EdgeInsets.symmetric(horizontal: 8),
  12. BorderRadius? borderRadius = const BorderRadius.all(Radius.circular(8)),
  13. Color? backgroundColor,
})

Implementation

const CustomCounterButton({
  super.key,
  this.currentValue = 0,
  this.onChanged,
  this.iconLeftColor,
  this.iconRightColor,
  this.openCalc = true,
  super.height = 48,
  super.width = 128,
  super.flex,
  super.margin,
  super.padding = const EdgeInsets.symmetric(horizontal: 8),
  super.borderRadius = const BorderRadius.all(Radius.circular(8)),
  super.backgroundColor,
});