SunnyTextField<T extends Object>.formField constructor
SunnyTextField<T extends Object>.formField ({
- Key? key,
- required JsonPath attribute,
- bool obscureText = false,
- dynamic label,
- TextInputType? keyboardType,
- int? minLength,
- List<
ValidatorFn< validators = const [],T?> > - bool? isRequired,
- bool autovalidate = false,
- T? initialValue,
- FormValueChanged<
T?> ? onChange, - FocusNode? focusNode,
- TextCapitalization? textCapitalization,
- ValueChanged<
T?> ? onSubmitted, - bool? autocorrect,
- TextInputAction? textInputAction,
- dynamic placeholder,
- FieldConverter<
T> ? converter, - TextEditingController? controller,
- bool autofocus = false,
- TextStyle? placeholderStyle,
- bool expands = false,
- int? minLines,
- int? maxLines,
- bool enabled = true,
Implementation
SunnyTextField.formField(
{Key? key,
required this.attribute,
this.obscureText = false,
this.label,
this.keyboardType,
this.minLength,
this.validators = const [],
this.isRequired,
this.autovalidate = false,
this.initialValue,
this.onChange,
this.focusNode,
this.textCapitalization,
this.onSubmitted,
this.autocorrect,
this.textInputAction,
this.placeholder,
this.converter,
this.controller,
this.autofocus = false,
this.placeholderStyle,
this.expands = false,
this.minLines,
this.maxLines,
this.enabled = true})
: cupertino = ((context, _) => CupertinoTextFieldData(
expands: false,
padding: EdgeInsets.zero,
decoration: BoxDecoration(
border: Border.all(style: BorderStyle.none, width: 0)))),
material = ((context, _) => MaterialTextFieldData(expands: false)),
super(key: key ?? Key("$attribute-input"));