TextFieldWidget constructor
const
TextFieldWidget({
- Key? key,
- void saveValue()?,
- Widget? title,
- required String? getValue()?,
- FieldValidation? validation,
- FocusNode? focusNode,
- void onSubmit()?,
- TextInputType? keyboardType,
- bool multiLine = false,
- int? maxLines = 8,
- required bool? isEditable,
- bool? isDisabled = false,
- HighlightController? highlightController,
- TextCapitalization? textCapitalization,
- TextInputAction? textInputAction,
- TextEditingController? controller,
Implementation
const TextFieldWidget({
Key? key,
this.saveValue,
this.title,
required this.getValue,
this.validation,
this.focusNode,
this.onSubmit,
this.keyboardType,
this.multiLine = false,
this.maxLines = 8,
required this.isEditable,
this.isDisabled = false,
this.highlightController,
this.textCapitalization,
this.textInputAction,
this.controller,
}) : assert(getValue != null),
assert(!(isEditable ?? true) || saveValue != null),
assert(textInputAction == null || !multiLine,
"For multiline the textInputAction must be null!"),
super(key: key);