SliderCaptcha constructor

const SliderCaptcha({
  1. required Widget image,
  2. required Future<void> onConfirm(
    1. bool value
    )?,
  3. String title = 'Slide to authenticate',
  4. TextStyle? titleStyle,
  5. double captchaSize = 30,
  6. Color colorBar = Colors.red,
  7. Color colorCaptChar = Colors.blue,
  8. SliderController? controller,
  9. double borderImager = 0,
  10. double imageToBarPadding = 0,
  11. Widget? icon,
  12. Key? key,
})

Implementation

const SliderCaptcha({
  required this.image,
  required this.onConfirm,
  this.title = 'Slide to authenticate',
  this.titleStyle,
  this.captchaSize = 30,
  this.colorBar = Colors.red,
  this.colorCaptChar = Colors.blue,
  this.controller,
  this.borderImager = 0,
  this.imageToBarPadding = 0,
  this.icon,
  Key? key,
})  : assert(0 <= borderImager && borderImager <= 5),
      super(key: key);