CaptchaFormField constructor

const CaptchaFormField({
  1. Key? key,
  2. int captchaLength = 6,
  3. Duration captchaDuration = const Duration(minutes: 1),
  4. String? labelText = 'CAPTCHA',
  5. InputDecoration? inputDecoration,
  6. dynamic onChanged(
    1. String
    )?,
  7. String? validator(
    1. String? input,
    2. String generatedCaptcha
    )?,
  8. CaptchaComplexity captchaComplexity = CaptchaComplexity.medium,
  9. BoxDecoration? captchaBackground,
  10. TextStyle? captchaTextStyle,
  11. ThemeData? captchaTheme,
  12. String? requiredErrorMessage,
  13. String? mismatchErrorMessage,
})

Implementation

const CaptchaFormField({
  Key? key,
  this.captchaLength = 6,
  this.captchaDuration = const Duration(minutes: 1),
  this.labelText = 'CAPTCHA',
  this.inputDecoration,
  this.onChanged,
  this.validator,
  this.captchaComplexity = CaptchaComplexity.medium,
  this.captchaBackground,
  this.captchaTextStyle,
  this.captchaTheme,
  this.requiredErrorMessage,
  this.mismatchErrorMessage,
}) : super(key: key);