CodeField constructor

const CodeField({
  1. Key? key,
  2. int length = 6,
  3. TextStyle? labelStyle,
  4. TextStyle? textStyle,
  5. bool enabled = true,
  6. bool? filled,
  7. String? label,
  8. Widget? labelWidget,
  9. bool appendColonToLabel = true,
  10. String? errorText,
  11. ValueChanged<String>? onChanged,
  12. BorderRadius? borderRadius,
  13. List<InputFeedbackText>? feedback,
  14. TextInputType? keyboardType,
  15. dynamic onSubmitted(
    1. String value
    )?,
  16. TextInputAction textInputAction = material.TextInputAction.done,
  17. List<TextInputFormatter>? inputFormatters,
  18. bool forceUppercase = false,
  19. WrapWidgetBuilder? innerBoxWrapper,
  20. String? value,
  21. String? hintText,
  22. bool forceErrorStyle = false,
  23. AlignmentGeometry fieldAlignment = Alignment.center,
  24. double inputBoxSize = 45,
  25. TextCapitalization textCapitalization = material.TextCapitalization.none,
})

Implementation

const CodeField({
  Key? key,
  this.length = 6,
  this.labelStyle,
  this.textStyle,
  this.enabled = true,
  this.filled,
  this.label,
  this.labelWidget,
  this.appendColonToLabel = true,
  this.errorText,
  this.onChanged,
  this.borderRadius,
  this.feedback,
  this.keyboardType,
  this.onSubmitted,
  this.textInputAction = material.TextInputAction.done,
  this.inputFormatters,
  this.forceUppercase = false,
  this.innerBoxWrapper,
  this.value,
  this.hintText,
  this.forceErrorStyle = false,
  this.fieldAlignment = Alignment.center,
  this.inputBoxSize = 45,
  this.textCapitalization = material.TextCapitalization.none,
})  : assert(
        label == null || labelWidget == null,
        'You cannot provide both `label` and `labelWidget` at the same time. '
        'Use only one of them.',
      ),
      super(key: key);