copyWith method
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,
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,
);
}