Field.capitalizeSentences constructor
Field.capitalizeSentences(
- String key, {
- String? label,
- String? value,
- FormValidator? validator,
- bool autofocus = false,
- String? dummyData,
- Widget? header,
- TextStyle? titleStyle,
- bool? readOnly,
- FieldStyleTextField? style,
- dynamic onChanged(
- dynamic value
Field.capitalizeSentences is a constructor that helps in managing capitalizeSentences fields
Implementation
Field.capitalizeSentences(
this.key, {
this.label,
String? value,
this.validator,
this.autofocus = false,
this.dummyData,
this.header,
this.footer,
this.titleStyle,
this.hidden = false,
this.readOnly,
FieldStyleTextField? style,
Function(dynamic value)? onChanged,
}) : _value = value,
this.style = style ?? FieldStyleTextField() {
this.style = (this.style as FieldStyleTextField).copyWith(
type: "capitalizeSentences",
inputFormatters: [
FilteringTextInputFormatter.allow(RegExp(r"[a-zA-Z\s]")),
],
textCapitalization: TextCapitalization.sentences,
);
setOnChanged(onChanged);
widget = NyFormTextField.fromField(this);
}