TextControl<T>.formField constructor
TextControl<T>.formField ({
- Key? key,
- required JsonPath<
T> attribute, - bool obscureText = false,
- TextInputType? keyboardType,
- bool isLarge = false,
- int? minLength,
- OnValidationError? onError,
- TextStyle? style,
- List<
ValidatorFn< validators = const [],T> > - bool? isRequired,
- bool autovalidate = false,
- T? initialValue,
- FormValueChanged<
T> ? onChange, - bool? adaptive,
- FocusNode? focusNode,
- EdgeInsets? padding,
- ValueChanged<
T> ? onSubmitted, - bool? autocorrect,
- TextInputAction? textInputAction,
- dynamic placeholder,
- TextCapitalization? textCapitalization,
- Formatter<
T> ? formatter, - Converter<
T?> ? converter, - TextEditingController? controller,
- bool autofocus = false,
- TextStyle? placeholderStyle,
- bool expands = false,
- int? minLines,
- int? maxLines,
- bool enabled = true,
- Widget? prefix,
- 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"));