SliderButton constructor

const SliderButton({
  1. Key? key,
  2. double height = 70,
  3. double width = 300,
  4. Color backgroundColor = Colors.white,
  5. Color? backgroundColorEnd,
  6. Color? foregroundColor,
  7. Color iconColor = Colors.white,
  8. BoxShadow? shadow,
  9. Widget? sliderButtonContent,
  10. String? text,
  11. TextStyle? textStyle,
  12. required VoidCallback onConfirmation,
  13. BorderRadius? foregroundShape,
  14. BorderRadius? backgroundShape,
  15. bool stickToEnd = false,
  16. Curve? animationCurve,
})

Implementation

const SliderButton({
  Key? key,
  this.height = 70,
  this.width = 300,
  this.backgroundColor = Colors.white,
  this.backgroundColorEnd,
  this.foregroundColor,
  this.iconColor = Colors.white,
  this.shadow,
  this.sliderButtonContent,
  this.text,
  this.textStyle,
  required this.onConfirmation,
  this.foregroundShape,
  this.backgroundShape,
  this.stickToEnd = false,
  this.animationCurve,
})  : assert(height >= 25 && width >= 250),
      super(key: key);