copyWith method

CupertinoTextFieldConfiguration copyWith({
  1. TextEditingController? controller,
  2. FocusNode? focusNode,
  3. BoxDecoration? decoration,
  4. EdgeInsetsGeometry? padding,
  5. String? placeholder,
  6. TextStyle? placeholderStyle,
  7. Widget? prefix,
  8. OverlayVisibilityMode? prefixMode,
  9. Widget? suffix,
  10. OverlayVisibilityMode? suffixMode,
  11. OverlayVisibilityMode? clearButtonMode,
  12. TextInputType? keyboardType,
  13. TextInputAction? textInputAction,
  14. TextCapitalization? textCapitalization,
  15. TextStyle? style,
  16. TextAlign? textAlign,
  17. bool? autofocus,
  18. bool? obscureText,
  19. bool? autocorrect,
  20. int? maxLines,
  21. int? minLines,
  22. int? maxLength,
  23. MaxLengthEnforcement? maxLengthEnforcement,
  24. ValueChanged<String>? onChanged,
  25. VoidCallback? onEditingComplete,
  26. GestureTapCallback? onTap,
  27. ValueChanged<String>? onSubmitted,
  28. List<TextInputFormatter>? inputFormatters,
  29. bool? enabled,
  30. bool? enableSuggestions,
  31. double? cursorWidth,
  32. Radius? cursorRadius,
  33. Color? cursorColor,
  34. Brightness? keyboardAppearance,
  35. EdgeInsets? scrollPadding,
  36. bool? enableInteractiveSelection,
  37. List<String>? autofillHints,
})

Copies the CupertinoTextFieldConfiguration and only changes the specified properties

Implementation

CupertinoTextFieldConfiguration copyWith({
  TextEditingController? controller,
  FocusNode? focusNode,
  BoxDecoration? decoration,
  EdgeInsetsGeometry? padding,
  String? placeholder,
  TextStyle? placeholderStyle,
  Widget? prefix,
  OverlayVisibilityMode? prefixMode,
  Widget? suffix,
  OverlayVisibilityMode? suffixMode,
  OverlayVisibilityMode? clearButtonMode,
  TextInputType? keyboardType,
  TextInputAction? textInputAction,
  TextCapitalization? textCapitalization,
  TextStyle? style,
  TextAlign? textAlign,
  bool? autofocus,
  bool? obscureText,
  bool? autocorrect,
  int? maxLines,
  int? minLines,
  int? maxLength,
  MaxLengthEnforcement? maxLengthEnforcement,
  ValueChanged<String>? onChanged,
  VoidCallback? onEditingComplete,
  GestureTapCallback? onTap,
  ValueChanged<String>? onSubmitted,
  List<TextInputFormatter>? inputFormatters,
  bool? enabled,
  bool? enableSuggestions,
  double? cursorWidth,
  Radius? cursorRadius,
  Color? cursorColor,
  Brightness? keyboardAppearance,
  EdgeInsets? scrollPadding,
  bool? enableInteractiveSelection,
  List<String>? autofillHints,
}) =>
    CupertinoTextFieldConfiguration(
      controller: controller ?? this.controller,
      focusNode: focusNode ?? this.focusNode,
      decoration: decoration ?? this.decoration,
      padding: padding ?? this.padding,
      placeholder: placeholder ?? this.placeholder,
      placeholderStyle: placeholderStyle ?? this.placeholderStyle,
      prefix: prefix ?? this.prefix,
      prefixMode: prefixMode ?? this.prefixMode,
      suffix: suffix ?? this.suffix,
      suffixMode: suffixMode ?? this.suffixMode,
      clearButtonMode: clearButtonMode ?? this.clearButtonMode,
      keyboardType: keyboardType ?? this.keyboardType,
      textInputAction: textInputAction ?? this.textInputAction,
      textCapitalization: textCapitalization ?? this.textCapitalization,
      style: style ?? this.style,
      textAlign: textAlign ?? this.textAlign,
      autofocus: autofocus ?? this.autofocus,
      obscureText: obscureText ?? this.obscureText,
      autocorrect: autocorrect ?? this.autocorrect,
      maxLines: maxLines ?? this.maxLines,
      minLines: minLines ?? this.minLines,
      maxLength: maxLength ?? this.maxLength,
      maxLengthEnforcement: maxLengthEnforcement ?? this.maxLengthEnforcement,
      onChanged: onChanged ?? this.onChanged,
      onEditingComplete: onEditingComplete ?? this.onEditingComplete,
      onTap: onTap ?? this.onTap,
      onSubmitted: onSubmitted ?? this.onSubmitted,
      inputFormatters: inputFormatters ?? this.inputFormatters,
      enabled: enabled ?? this.enabled,
      enableSuggestions: enableSuggestions ?? this.enableSuggestions,
      cursorWidth: cursorWidth ?? this.cursorWidth,
      cursorRadius: cursorRadius ?? this.cursorRadius,
      cursorColor: cursorColor ?? this.cursorColor,
      keyboardAppearance: keyboardAppearance ?? this.keyboardAppearance,
      scrollPadding: scrollPadding ?? this.scrollPadding,
      enableInteractiveSelection:
          enableInteractiveSelection ?? this.enableInteractiveSelection,
      autofillHints: autofillHints ?? this.autofillHints,
    );