CardSettingsText constructor
CardSettingsText({
- Key? key,
- String? initialValue,
- bool autovalidate = false,
- AutovalidateMode autovalidateMode = AutovalidateMode.onUserInteraction,
- bool enabled = true,
- FormFieldSetter<
String> ? onSaved, - FormFieldValidator<
String> ? validator, - ValueChanged<
String> ? onChanged, - TextEditingController? controller,
- TextCapitalization textCapitalization = TextCapitalization.none,
- TextInputType keyboardType = TextInputType.text,
- MaxLengthEnforcement? maxLengthEnforcement = MaxLengthEnforcement.enforced,
- String? inputMask,
- List<
TextInputFormatter> ? inputFormatters, - ValueChanged<
String> ? onFieldSubmitted, - TextStyle? style,
- FocusNode? focusNode,
- TextInputAction? inputAction,
- FocusNode? inputActionNode,
- String label = 'Label',
- bool contentOnNewLine = false,
- int maxLength = 20,
- int numberOfLines = 1,
- bool showCounter = false,
- bool visible = true,
- bool autocorrect = true,
- bool obscureText = false,
- bool autofocus = false,
- TextAlign? contentAlign,
- String? hintText,
- Icon? icon,
- TextAlign? labelAlign,
- double? labelWidth,
- String? prefixText,
- Widget? requiredIndicator,
- String? unitLabel,
- bool? showMaterialonIOS,
- OverlayVisibilityMode showClearButtonIOS = OverlayVisibilityMode.never,
- EdgeInsetsGeometry? fieldPadding,
- EdgeInsetsGeometry contentPadding = const EdgeInsets.all(0.0),
Implementation
CardSettingsText({
Key? key,
String? initialValue,
bool autovalidate = false,
AutovalidateMode autovalidateMode = AutovalidateMode.onUserInteraction,
this.enabled = true,
this.onSaved,
this.validator,
this.onChanged,
this.controller,
this.textCapitalization = TextCapitalization.none,
this.keyboardType = TextInputType.text,
this.maxLengthEnforcement = MaxLengthEnforcement.enforced,
this.inputMask,
this.inputFormatters,
this.onFieldSubmitted,
this.style,
this.focusNode,
this.inputAction,
this.inputActionNode,
this.label = 'Label',
this.contentOnNewLine = false,
this.maxLength = 20,
this.numberOfLines = 1,
this.showCounter = false,
this.visible = true,
this.autocorrect = true,
this.obscureText = false,
this.autofocus = false,
this.contentAlign,
this.hintText,
this.icon,
this.labelAlign,
this.labelWidth,
this.prefixText,
this.requiredIndicator,
this.unitLabel,
this.showMaterialonIOS,
this.showClearButtonIOS = OverlayVisibilityMode.never,
this.fieldPadding,
this.contentPadding = const EdgeInsets.all(0.0),
}) : assert(maxLength > 0),
assert(controller == null || inputMask == null),
super(
key: key,
initialValue: initialValue,
onSaved: onSaved,
validator: validator,
autovalidateMode: autovalidateMode,
builder: (FormFieldState<String> field) =>
(field as _CardSettingsTextState)._build(field.context),
);