copyWith method

FxFieldOptions 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. int? maxLines,
  11. int? maxLength,
  12. FocusNode? focusNode,
  13. bool? autofocus,
  14. bool? autocorrect,
  15. bool? enableSuggestions,
  16. bool? readOnly,
  17. bool? showCursor,
  18. bool? showErrorText,
  19. TextInputType? keyboardType,
  20. TextInputAction? textInputAction,
  21. bool? obscureText,
  22. bool? enabled,
  23. FxLabelBehavior? labelBehavior,
})

Implementation

FxFieldOptions copyWith({
  String? label,
  String? hint,
  String? helperText,
  String? errorText,
  Widget? prefix,
  Widget? prefixIcon,
  Widget? suffix,
  Widget? suffixIcon,
  TextCapitalization? textCapitalization,
  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,
  FxLabelBehavior? labelBehavior,
}) =>
    FxFieldOptions(
      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,
      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,
    );