TextControl<T>.formField constructor

TextControl<T>.formField({
  1. Key? key,
  2. required JsonPath<T> attribute,
  3. bool obscureText = false,
  4. TextInputType? keyboardType,
  5. bool isLarge = false,
  6. int? minLength,
  7. OnValidationError? onError,
  8. TextStyle? style,
  9. List<ValidatorFn<T>> validators = const [],
  10. bool? isRequired,
  11. bool autovalidate = false,
  12. T? initialValue,
  13. FormValueChanged<T>? onChange,
  14. bool? adaptive,
  15. FocusNode? focusNode,
  16. EdgeInsets? padding,
  17. ValueChanged<T>? onSubmitted,
  18. bool? autocorrect,
  19. TextInputAction? textInputAction,
  20. dynamic placeholder,
  21. TextCapitalization? textCapitalization,
  22. Formatter<T>? formatter,
  23. Converter<T?>? converter,
  24. TextEditingController? controller,
  25. bool autofocus = false,
  26. TextStyle? placeholderStyle,
  27. bool expands = false,
  28. int? minLines,
  29. int? maxLines,
  30. bool enabled = true,
  31. Widget? prefix,
  32. Widget? suffix,
})

Implementation

TextControl.formField(
    {Key? key,
    required this.attribute,
    this.obscureText = false,
    this.keyboardType,
    this.isLarge = false,
    this.minLength,
    this.onError,
    this.style,
    this.validators = const [],
    this.isRequired,
    this.autovalidate = false,
    this.initialValue,
    this.onChange,
    this.adaptive,
    this.focusNode,
    this.padding,
    this.onSubmitted,
    this.autocorrect,
    this.textInputAction,
    this.placeholder,
    this.textCapitalization,
    this.formatter,
    this.converter,
    this.controller,
    this.autofocus = false,
    this.placeholderStyle,
    this.expands = false,
    this.minLines,
    this.maxLines,
    this.enabled = true,
    this.prefix,
    this.suffix})
    : state = null,
      super(key: key ?? Key("$attribute-input"));