copyWith method

GTextFieldConfig copyWith({
  1. String? name,
  2. TextEditingController? controller,
  3. String? initialValue,
  4. String? label,
  5. String? hint,
  6. TextInputType? keyboardType,
  7. TextInputAction? textInputAction,
  8. List<TextInputFormatter>? inputFormatters,
  9. GFormValidator? validator,
  10. void onChanged(
    1. String
    )?,
  11. void onFieldSubmitted(
    1. String
    )?,
  12. void onSaved(
    1. String?
    )?,
  13. IconData? prefixIcon,
  14. Widget? prefix,
  15. Widget? suffix,
  16. Widget? suffixIcon,
  17. FocusNode? focusNode,
  18. AutovalidateMode? autovalidateMode,
  19. bool? enabled,
  20. bool? readOnly,
  21. bool? obscureText,
  22. String? obscuringCharacter,
  23. bool? autocorrect,
  24. bool? enableSuggestions,
  25. int? minLines,
  26. int? maxLines,
  27. int? maxLength,
  28. TextCapitalization? textCapitalization,
  29. TextAlign? textAlign,
  30. TextStyle? style,
  31. Iterable<String>? autofillHints,
  32. InputDecoration? decoration,
})

Implementation

GTextFieldConfig copyWith({
  String? name,
  TextEditingController? controller,
  String? initialValue,
  String? label,
  String? hint,
  TextInputType? keyboardType,
  TextInputAction? textInputAction,
  List<TextInputFormatter>? inputFormatters,
  GFormValidator? validator,
  void Function(String)? onChanged,
  void Function(String)? onFieldSubmitted,
  void Function(String?)? onSaved,
  IconData? prefixIcon,
  Widget? prefix,
  Widget? suffix,
  Widget? suffixIcon,
  FocusNode? focusNode,
  AutovalidateMode? autovalidateMode,
  bool? enabled,
  bool? readOnly,
  bool? obscureText,
  String? obscuringCharacter,
  bool? autocorrect,
  bool? enableSuggestions,
  int? minLines,
  int? maxLines,
  int? maxLength,
  TextCapitalization? textCapitalization,
  TextAlign? textAlign,
  TextStyle? style,
  Iterable<String>? autofillHints,
  InputDecoration? decoration,
}) {
  return GTextFieldConfig(
    name: name ?? this.name,
    controller: controller ?? this.controller,
    initialValue: initialValue ?? this.initialValue,
    label: label ?? this.label,
    hint: hint ?? this.hint,
    keyboardType: keyboardType ?? this.keyboardType,
    textInputAction: textInputAction ?? this.textInputAction,
    inputFormatters: inputFormatters ?? this.inputFormatters,
    validator: validator ?? this.validator,
    onChanged: onChanged ?? this.onChanged,
    onFieldSubmitted: onFieldSubmitted ?? this.onFieldSubmitted,
    onSaved: onSaved ?? this.onSaved,
    prefixIcon: prefixIcon ?? this.prefixIcon,
    prefix: prefix ?? this.prefix,
    suffix: suffix ?? this.suffix,
    suffixIcon: suffixIcon ?? this.suffixIcon,
    focusNode: focusNode ?? this.focusNode,
    autovalidateMode: autovalidateMode ?? this.autovalidateMode,
    enabled: enabled ?? this.enabled,
    readOnly: readOnly ?? this.readOnly,
    obscureText: obscureText ?? this.obscureText,
    obscuringCharacter: obscuringCharacter ?? this.obscuringCharacter,
    autocorrect: autocorrect ?? this.autocorrect,
    enableSuggestions: enableSuggestions ?? this.enableSuggestions,
    minLines: minLines ?? this.minLines,
    maxLines: maxLines ?? this.maxLines,
    maxLength: maxLength ?? this.maxLength,
    textCapitalization: textCapitalization ?? this.textCapitalization,
    textAlign: textAlign ?? this.textAlign,
    style: style ?? this.style,
    autofillHints: autofillHints ?? this.autofillHints,
    decoration: decoration ?? this.decoration,
  );
}