copyWith method
VoFieldOptions
copyWith({
- String? label,
- String? hint,
- String? helperText,
- String? errorText,
- Widget? prefix,
- Widget? prefixIcon,
- Widget? suffix,
- Widget? suffixIcon,
- TextCapitalization? textCapitalization,
- TextAlign? textAlign,
- int? maxLines,
- int? maxLength,
- FocusNode? focusNode,
- bool? autofocus,
- bool? autocorrect,
- bool? enableSuggestions,
- bool? readOnly,
- bool? showCursor,
- bool? showErrorText,
- TextInputType? keyboardType,
- TextInputAction? textInputAction,
- bool? obscureText,
- bool? enabled,
- VoLabelBehavior? labelBehavior,
- Color? fillColor,
- InputBorder? border,
- InputBorder? enabledBorder,
- InputBorder? focusedBorder,
- InputBorder? errorBorder,
- InputBorder? disabledBorder,
Implementation
VoFieldOptions copyWith({
String? label,
String? hint,
String? helperText,
String? errorText,
Widget? prefix,
Widget? prefixIcon,
Widget? suffix,
Widget? suffixIcon,
TextCapitalization? textCapitalization,
TextAlign? textAlign,
int? maxLines,
int? maxLength,
FocusNode? focusNode,
bool? autofocus,
bool? autocorrect,
bool? enableSuggestions,
bool? readOnly,
bool? showCursor,
bool? showErrorText,
TextInputType? keyboardType,
TextInputAction? textInputAction,
bool? obscureText,
bool? enabled,
VoLabelBehavior? labelBehavior,
Color? fillColor,
InputBorder? border,
InputBorder? enabledBorder,
InputBorder? focusedBorder,
InputBorder? errorBorder,
InputBorder? disabledBorder,
}) => VoFieldOptions(
label: label ?? this.label,
hint: hint ?? this.hint,
helperText: helperText ?? this.helperText,
errorText: errorText ?? this.errorText,
prefix: prefix ?? this.prefix,
prefixIcon: prefixIcon ?? this.prefixIcon,
suffix: suffix ?? this.suffix,
suffixIcon: suffixIcon ?? this.suffixIcon,
textCapitalization: textCapitalization ?? this.textCapitalization,
textAlign: textAlign ?? this.textAlign,
maxLines: maxLines ?? this.maxLines,
maxLength: maxLength ?? this.maxLength,
focusNode: focusNode ?? this.focusNode,
autofocus: autofocus ?? this.autofocus,
autocorrect: autocorrect ?? this.autocorrect,
enableSuggestions: enableSuggestions ?? this.enableSuggestions,
readOnly: readOnly ?? this.readOnly,
showCursor: showCursor ?? this.showCursor,
showErrorText: showErrorText ?? this.showErrorText,
keyboardType: keyboardType ?? this.keyboardType,
textInputAction: textInputAction ?? this.textInputAction,
obscureText: obscureText ?? this.obscureText,
enabled: enabled ?? this.enabled,
labelBehavior: labelBehavior ?? this.labelBehavior,
fillColor: fillColor ?? this.fillColor,
border: border ?? this.border,
enabledBorder: enabledBorder ?? this.enabledBorder,
focusedBorder: focusedBorder ?? this.focusedBorder,
errorBorder: errorBorder ?? this.errorBorder,
disabledBorder: disabledBorder ?? this.disabledBorder,
);