copyWith method

CommonTextInputModel copyWith({
  1. double? borderWidth,
  2. Key? key,
  3. double? fontSize,
  4. double? radius,
  5. double? contentPadding,
  6. double? contentPaddingTop,
  7. double? contentPaddingBottom,
  8. double? contentPaddingRight,
  9. double? contentPaddingLeft,
  10. double? contentPaddingVertical,
  11. double? contentPaddingHorizontal,
  12. double? prefixMinWidth,
  13. double? prefixMinHeight,
  14. double? prefixMaxWidth,
  15. double? prefixMaxHeight,
  16. double? suffixMinWidth,
  17. double? suffixMinHeight,
  18. double? suffixMaxWidth,
  19. double? suffixMaxHeight,
  20. double? cursorHeight,
  21. double? cursorWidth,
  22. dynamic textColor,
  23. dynamic disabledColor,
  24. dynamic errorColor,
  25. dynamic focusBorderColor,
  26. dynamic enabledBorderColor,
  27. dynamic disabledBorderColor,
  28. dynamic errorBorderColor,
  29. dynamic hintColor,
  30. dynamic fillColor,
  31. dynamic cursorColor,
  32. int? maxLength,
  33. int? minLength,
  34. int? minLines,
  35. int? maxLines,
  36. Widget? prefixWidget,
  37. Widget? suffixWidget,
  38. Widget? prefix,
  39. Widget? suffix,
  40. Widget? counterWidget,
  41. CommonIcon? prefixIcon,
  42. CommonIcon? suffixIcon,
  43. FocusNode? focusNode,
  44. int? fontWeight,
  45. String? hint,
  46. String? fontFamily,
  47. String? text,
  48. String? prefixText,
  49. String? suffixText,
  50. String? counterText,
  51. String? semanticCounterText,
  52. bool? isRequired,
  53. bool? withBorderSide,
  54. bool? underlined,
  55. bool? isCollapsed,
  56. bool? readOnly,
  57. bool? obscureText,
  58. bool? enabled,
  59. bool? showCursor,
  60. bool? autoCorrect,
  61. bool? withInputVerification,
  62. TextInputType? textInputType,
  63. TextAlign? textAlign,
  64. TextInputAction? textInputAction,
  65. TextStyle? textStyle,
  66. TextStyle? hintStyle,
  67. TextStyle? prefixStyle,
  68. TextStyle? suffixStyle,
  69. TextStyle? counterStyle,
  70. Pattern? textInputPattern,
  71. List<TextInputFormatter>? textInputFormatters,
  72. InputDecoration? inputDecoration,
  73. Radius? cursorRadius,
  74. Iterable<String>? autofillHints,
  75. bool? autofocus,
  76. AutovalidateMode? autoValidateMode,
  77. InputCounterWidgetBuilder? buildCounter,
  78. bool? enableInteractiveSelection,
  79. bool? enableSuggestions,
  80. bool? expands,
  81. String? initialValue,
  82. String? obscuringCharacter,
  83. Brightness? keyboardAppearance,
  84. VoidCallback? onEditingComplete,
  85. ValueChanged<String>? onFieldSubmitted,
  86. FormFieldSetter<String>? onSaved,
  87. GestureTapCallback? onTap,
  88. ScrollController? scrollController,
  89. EdgeInsets? scrollPadding,
  90. TextSelectionControls? selectionControls,
  91. SmartDashesType? smartDashesType,
  92. SmartQuotesType? smartQuotesType,
  93. StrutStyle? strutStyle,
  94. TextAlignVertical? textAlignVertical,
  95. TextCapitalization? textCapitalization,
  96. TextDirection? textDirection,
  97. FormFieldValidator<String>? validator,
  98. MaxLengthEnforcement? maxLengthEnforcement,
})

Implementation

CommonTextInputModel copyWith({
  double? borderWidth,
  Key? key,
  double? fontSize,
  double? radius,
  double? contentPadding,
  double? contentPaddingTop,
  double? contentPaddingBottom,
  double? contentPaddingRight,
  double? contentPaddingLeft,
  double? contentPaddingVertical,
  double? contentPaddingHorizontal,
  double? prefixMinWidth,
  double? prefixMinHeight,
  double? prefixMaxWidth,
  double? prefixMaxHeight,
  double? suffixMinWidth,
  double? suffixMinHeight,
  double? suffixMaxWidth,
  double? suffixMaxHeight,
  double? cursorHeight,
  double? cursorWidth,
  dynamic textColor,
  dynamic disabledColor,
  dynamic errorColor,
  dynamic focusBorderColor,
  dynamic enabledBorderColor,
  dynamic disabledBorderColor,
  dynamic errorBorderColor,
  dynamic hintColor,
  dynamic fillColor,
  dynamic cursorColor,
  int? maxLength,
  int? minLength,
  int? minLines,
  int? maxLines,
  Widget? prefixWidget,
  Widget? suffixWidget,
  Widget? prefix,
  Widget? suffix,
  Widget? counterWidget,
  CommonIcon? prefixIcon,
  CommonIcon? suffixIcon,
  FocusNode? focusNode,
  int? fontWeight,
  String? hint,
  String? fontFamily,
  String? text,
  String? prefixText,
  String? suffixText,
  String? counterText,
  String? semanticCounterText,
  bool? isRequired,
  bool? withBorderSide,
  bool? underlined,
  bool? isCollapsed,
  bool? readOnly,
  bool? obscureText,
  bool? enabled,
  bool? showCursor,
  bool? autoCorrect,
  bool? withInputVerification,
  TextInputType? textInputType,
  TextAlign? textAlign,
  TextInputAction? textInputAction,
  TextStyle? textStyle,
  TextStyle? hintStyle,
  TextStyle? prefixStyle,
  TextStyle? suffixStyle,
  TextStyle? counterStyle,
  Pattern? textInputPattern,
  List<TextInputFormatter>? textInputFormatters,
  InputDecoration? inputDecoration,
  Radius? cursorRadius,
  Iterable<String>? autofillHints,
  bool? autofocus,
  AutovalidateMode? autoValidateMode,
  InputCounterWidgetBuilder? buildCounter,
  bool? enableInteractiveSelection,
  bool? enableSuggestions,
  bool? expands,
  String? initialValue,
  String? obscuringCharacter,
  Brightness? keyboardAppearance,
  VoidCallback? onEditingComplete,
  ValueChanged<String>? onFieldSubmitted,
  FormFieldSetter<String>? onSaved,
  GestureTapCallback? onTap,
  ScrollController? scrollController,
  EdgeInsets? scrollPadding,
  TextSelectionControls? selectionControls,
  SmartDashesType? smartDashesType,
  SmartQuotesType? smartQuotesType,
  StrutStyle? strutStyle,
  TextAlignVertical? textAlignVertical,
  TextCapitalization? textCapitalization,
  TextDirection? textDirection,
  FormFieldValidator<String>? validator,
  MaxLengthEnforcement? maxLengthEnforcement,
}) {
  return CommonTextInputModel(
    borderWidth: borderWidth ?? this.borderWidth,
    key: key ?? this.key,
    fontSize: fontSize ?? this.fontSize,
    radius: radius ?? this.radius,
    contentPadding: contentPadding ?? this.contentPadding,
    contentPaddingTop: contentPaddingTop ?? this.contentPaddingTop,
    contentPaddingBottom: contentPaddingBottom ?? this.contentPaddingBottom,
    contentPaddingRight: contentPaddingRight ?? this.contentPaddingRight,
    contentPaddingLeft: contentPaddingLeft ?? this.contentPaddingLeft,
    contentPaddingVertical:
        contentPaddingVertical ?? this.contentPaddingVertical,
    contentPaddingHorizontal:
        contentPaddingHorizontal ?? this.contentPaddingHorizontal,
    prefixMinWidth: prefixMinWidth ?? this.prefixMinWidth,
    prefixMinHeight: prefixMinHeight ?? this.prefixMinHeight,
    prefixMaxWidth: prefixMaxWidth ?? this.prefixMaxWidth,
    prefixMaxHeight: prefixMaxHeight ?? this.prefixMaxHeight,
    suffixMinWidth: suffixMinWidth ?? this.suffixMinWidth,
    suffixMinHeight: suffixMinHeight ?? this.suffixMinHeight,
    suffixMaxWidth: suffixMaxWidth ?? this.suffixMaxWidth,
    suffixMaxHeight: suffixMaxHeight ?? this.suffixMaxHeight,
    cursorHeight: cursorHeight ?? this.cursorHeight,
    cursorWidth: cursorWidth ?? this.cursorWidth,
    textColor: textColor ?? this.textColor,
    disabledColor: disabledColor ?? this.disabledColor,
    errorColor: errorColor ?? this.errorColor,
    focusBorderColor: focusBorderColor ?? this.focusBorderColor,
    enabledBorderColor: enabledBorderColor ?? this.enabledBorderColor,
    disabledBorderColor: disabledBorderColor ?? this.disabledBorderColor,
    errorBorderColor: errorBorderColor ?? this.errorBorderColor,
    hintColor: hintColor ?? this.hintColor,
    fillColor: fillColor ?? this.fillColor,
    cursorColor: cursorColor ?? this.cursorColor,
    maxLength: maxLength ?? this.maxLength,
    minLength: minLength ?? this.minLength,
    minLines: minLines ?? this.minLines,
    maxLines: maxLines ?? this.maxLines,
    prefixWidget: prefixWidget ?? this.prefixWidget,
    suffixWidget: suffixWidget ?? this.suffixWidget,
    prefix: prefix ?? this.prefix,
    suffix: suffix ?? this.suffix,
    counterWidget: counterWidget ?? this.counterWidget,
    prefixIcon: prefixIcon ?? this.prefixIcon,
    suffixIcon: suffixIcon ?? this.suffixIcon,
    focusNode: focusNode ?? this.focusNode,
    fontWeight: fontWeight ?? this.fontWeight,
    hint: hint ?? this.hint,
    fontFamily: fontFamily ?? this.fontFamily,
    text: text ?? this.text,
    prefixText: prefixText ?? this.prefixText,
    suffixText: suffixText ?? this.suffixText,
    counterText: counterText ?? this.counterText,
    semanticCounterText: semanticCounterText ?? this.semanticCounterText,
    isRequired: isRequired ?? this.isRequired,
    withBorderSide: withBorderSide ?? this.withBorderSide,
    underlined: underlined ?? this.underlined,
    isCollapsed: isCollapsed ?? this.isCollapsed,
    readOnly: readOnly ?? this.readOnly,
    obscureText: obscureText ?? this.obscureText,
    enabled: enabled ?? this.enabled,
    showCursor: showCursor ?? this.showCursor,
    autoCorrect: autoCorrect ?? this.autoCorrect,
    withInputVerification:
        withInputVerification ?? this.withInputVerification,
    textInputType: textInputType ?? this.textInputType,
    textAlign: textAlign ?? this.textAlign,
    textInputAction: textInputAction ?? this.textInputAction,
    textStyle: textStyle ?? this.textStyle,
    hintStyle: hintStyle ?? this.hintStyle,
    prefixStyle: prefixStyle ?? this.prefixStyle,
    suffixStyle: suffixStyle ?? this.suffixStyle,
    counterStyle: counterStyle ?? this.counterStyle,
    textInputPattern: textInputPattern ?? this.textInputPattern,
    textInputFormatters: textInputFormatters ?? this.textInputFormatters,
    inputDecoration: inputDecoration ?? this.inputDecoration,
    cursorRadius: cursorRadius ?? this.cursorRadius,
    autofillHints: autofillHints ?? this.autofillHints,
    autofocus: autofocus ?? this.autofocus,
    autoValidateMode: autoValidateMode ?? this.autoValidateMode,
    buildCounter: buildCounter ?? this.buildCounter,
    enableInteractiveSelection:
        enableInteractiveSelection ?? this.enableInteractiveSelection,
    enableSuggestions: enableSuggestions ?? this.enableSuggestions,
    expands: expands ?? this.expands,
    initialValue: initialValue ?? this.initialValue,
    obscuringCharacter: obscuringCharacter ?? this.obscuringCharacter,
    keyboardAppearance: keyboardAppearance ?? this.keyboardAppearance,
    onEditingComplete: onEditingComplete ?? this.onEditingComplete,
    onFieldSubmitted: onFieldSubmitted ?? this.onFieldSubmitted,
    onSaved: onSaved ?? this.onSaved,
    onTap: onTap ?? this.onTap,
    scrollController: scrollController ?? this.scrollController,
    scrollPadding: scrollPadding ?? this.scrollPadding,
    selectionControls: selectionControls ?? this.selectionControls,
    smartDashesType: smartDashesType ?? this.smartDashesType,
    smartQuotesType: smartQuotesType ?? this.smartQuotesType,
    strutStyle: strutStyle ?? this.strutStyle,
    textAlignVertical: textAlignVertical ?? this.textAlignVertical,
    textCapitalization: textCapitalization ?? this.textCapitalization,
    textDirection: textDirection ?? this.textDirection,
    validator: validator ?? this.validator,
    maxLengthEnforcement: maxLengthEnforcement ?? this.maxLengthEnforcement,
  );
}