copyWith method

VoFieldOptions copyWith({
  1. String? label,
  2. String? hint,
  3. String? helperText,
  4. String? errorText,
  5. Widget? prefix,
  6. Widget? prefixIcon,
  7. Widget? suffix,
  8. Widget? suffixIcon,
  9. TextCapitalization? textCapitalization,
  10. TextAlign? textAlign,
  11. int? maxLines,
  12. int? maxLength,
  13. FocusNode? focusNode,
  14. bool? autofocus,
  15. bool? autocorrect,
  16. bool? enableSuggestions,
  17. bool? readOnly,
  18. bool? showCursor,
  19. bool? showErrorText,
  20. TextInputType? keyboardType,
  21. TextInputAction? textInputAction,
  22. bool? obscureText,
  23. bool? enabled,
  24. VoLabelBehavior? labelBehavior,
  25. Color? fillColor,
  26. InputBorder? border,
  27. InputBorder? enabledBorder,
  28. InputBorder? focusedBorder,
  29. InputBorder? errorBorder,
  30. 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,
);