copyWith method

  1. @override
FieldStyleTextField copyWith({
  1. String? labelText,
  2. TextStyle? labelStyle,
  3. FieldLabelPosition? labelPosition,
  4. TextEditingController? controller,
  5. bool? obscureText,
  6. int? maxLines,
  7. int? minLines,
  8. TextInputType? keyboardType,
  9. bool? autoFocus,
  10. TextAlign? textAlign,
  11. bool? enableSuggestions,
  12. FocusNode? focusNode,
  13. String? hintText,
  14. TextStyle? hintStyle,
  15. String? dummyData,
  16. dynamic onChanged(
    1. String value
    )?,
  17. TextInputAction? textInputAction,
  18. TextStyle? style,
  19. StrutStyle? strutStyle,
  20. TextAlignVertical? textAlignVertical,
  21. TextDirection? textDirection,
  22. String? obscuringCharacter,
  23. bool? autocorrect,
  24. SmartDashesType? smartDashesType,
  25. SmartQuotesType? smartQuotesType,
  26. bool? expands,
  27. bool? readOnly,
  28. bool? showCursor,
  29. int? maxLength,
  30. MouseCursor? mouseCursor,
  31. String? validationErrorMessage,
  32. TextCapitalization? textCapitalization,
  33. MaxLengthEnforcement? maxLengthEnforcement,
  34. AppPrivateCommandCallback? onAppPrivateCommand,
  35. List<TextInputFormatter>? inputFormatters,
  36. bool? enabled,
  37. double? cursorWidth,
  38. double? cursorHeight,
  39. Radius? cursorRadius,
  40. Color? cursorColor,
  41. Brightness? keyboardAppearance,
  42. EdgeInsets? scrollPadding,
  43. TextSelectionControls? selectionControls,
  44. DragStartBehavior? dragStartBehavior,
  45. GestureTapCallback? onTap,
  46. TapRegionCallback? onTapOutside,
  47. InputDecoration? decoration,
  48. VoidCallback? onEditingComplete,
  49. ValueChanged<String>? onSubmitted,
  50. ScrollController? scrollController,
  51. ScrollPhysics? scrollPhysics,
  52. Iterable<String>? autofillHints,
  53. Clip? clipBehavior,
  54. bool? enableInteractiveSelection,
  55. dynamic handleValidationError(
    1. FormValidationResponse handleError
    )?,
  56. bool? passwordVisible,
  57. String? type,
  58. Widget? prefixIcon,
  59. PrefixIconAlignment? prefixIconAlignment,
  60. Color? backgroundColor,
  61. BorderRadius? borderRadius,
  62. InputBorder? border,
  63. InputBorder? focusedBorder,
  64. InputBorder? enabledBorder,
  65. EdgeInsetsGeometry? contentPadding,
  66. bool? passwordViewable,
  67. bool? validateOnFocusChange,
  68. bool customValidationRule(
    1. dynamic value
    )?,
  69. Widget? header,
  70. Widget? footer,
  71. bool? clearable,
  72. Widget? clearIcon,
  73. String? mask,
  74. String? maskMatch,
  75. bool? maskedReturnValue,
  76. DecoratorTextField? decorator,
  77. double? headerSpacing,
  78. double? footerSpacing,
  79. bool? filled,
  80. Color? fillColor,
  81. bool? isDense,
  82. Widget? suffixIcon,
  83. SuffixIconAlignment? suffixIconAlignment,
})
override

Implementation

@override
FieldStyleTextField copyWith({
  String? labelText,
  TextStyle? labelStyle,
  FieldLabelPosition? labelPosition,
  TextEditingController? controller,
  bool? obscureText,
  int? maxLines,
  int? minLines,
  TextInputType? keyboardType,
  bool? autoFocus,
  TextAlign? textAlign,
  bool? enableSuggestions,
  FocusNode? focusNode,
  String? hintText,
  TextStyle? hintStyle,
  String? dummyData,
  Function(String value)? onChanged,
  TextInputAction? textInputAction,
  TextStyle? style,
  StrutStyle? strutStyle,
  TextAlignVertical? textAlignVertical,
  TextDirection? textDirection,
  String? obscuringCharacter,
  bool? autocorrect,
  SmartDashesType? smartDashesType,
  SmartQuotesType? smartQuotesType,
  bool? expands,
  bool? readOnly,
  bool? showCursor,
  int? maxLength,
  MouseCursor? mouseCursor,
  String? validationErrorMessage,
  TextCapitalization? textCapitalization,
  MaxLengthEnforcement? maxLengthEnforcement,
  AppPrivateCommandCallback? onAppPrivateCommand,
  List<TextInputFormatter>? inputFormatters,
  bool? enabled,
  double? cursorWidth,
  double? cursorHeight,
  Radius? cursorRadius,
  Color? cursorColor,
  Brightness? keyboardAppearance,
  EdgeInsets? scrollPadding,
  TextSelectionControls? selectionControls,
  DragStartBehavior? dragStartBehavior,
  GestureTapCallback? onTap,
  TapRegionCallback? onTapOutside,
  InputDecoration? decoration,
  VoidCallback? onEditingComplete,
  ValueChanged<String>? onSubmitted,
  ScrollController? scrollController,
  ScrollPhysics? scrollPhysics,
  Iterable<String>? autofillHints,
  Clip? clipBehavior,
  bool? enableInteractiveSelection,
  Function(FormValidationResponse handleError)? handleValidationError,
  bool? passwordVisible,
  String? type,
  Widget? prefixIcon,
  PrefixIconAlignment? prefixIconAlignment,
  Color? backgroundColor,
  BorderRadius? borderRadius,
  InputBorder? border,
  InputBorder? focusedBorder,
  InputBorder? enabledBorder,
  EdgeInsetsGeometry? contentPadding,
  bool? passwordViewable,
  bool? validateOnFocusChange,
  bool Function(dynamic value)? customValidationRule,
  Widget? header,
  Widget? footer,
  bool? clearable,
  Widget? clearIcon,
  String? mask,
  String? maskMatch,
  bool? maskedReturnValue,
  DecoratorTextField? decorator,
  double? headerSpacing,
  double? footerSpacing,
  bool? filled,
  Color? fillColor,
  bool? isDense,
  Widget? suffixIcon,
  SuffixIconAlignment? suffixIconAlignment,
}) {
  return FieldStyleTextField(
    labelText: labelText ?? this.labelText,
    labelStyle: labelStyle ?? this.labelStyle,
    labelPosition: labelPosition ?? this.labelPosition,
    controller: controller ?? this.controller,
    obscureText: obscureText ?? this.obscureText,
    maxLines: maxLines ?? this.maxLines,
    minLines: minLines ?? this.minLines,
    keyboardType: keyboardType ?? this.keyboardType,
    autoFocus: autoFocus ?? this.autoFocus,
    textAlign: textAlign ?? this.textAlign,
    enableSuggestions: enableSuggestions ?? this.enableSuggestions,
    focusNode: focusNode ?? this.focusNode,
    hintText: hintText ?? this.hintText,
    hintStyle: hintStyle ?? this.hintStyle,
    dummyData: dummyData ?? this.dummyData,
    onChanged: onChanged ?? this.onChanged,
    textInputAction: textInputAction ?? this.textInputAction,
    style: style ?? this.style,
    strutStyle: strutStyle ?? this.strutStyle,
    textAlignVertical: textAlignVertical ?? this.textAlignVertical,
    textDirection: textDirection ?? this.textDirection,
    obscuringCharacter: obscuringCharacter ?? this.obscuringCharacter,
    autocorrect: autocorrect ?? this.autocorrect,
    smartDashesType: smartDashesType ?? this.smartDashesType,
    smartQuotesType: smartQuotesType ?? this.smartQuotesType,
    expands: expands ?? this.expands,
    readOnly: readOnly ?? this.readOnly,
    showCursor: showCursor ?? this.showCursor,
    maxLength: maxLength ?? this.maxLength,
    mouseCursor: mouseCursor ?? this.mouseCursor,
    validationErrorMessage:
        validationErrorMessage ?? this.validationErrorMessage,
    textCapitalization: textCapitalization ?? this.textCapitalization,
    maxLengthEnforcement: maxLengthEnforcement ?? this.maxLengthEnforcement,
    onAppPrivateCommand: onAppPrivateCommand ?? this.onAppPrivateCommand,
    inputFormatters: inputFormatters ?? this.inputFormatters,
    enabled: enabled ?? this.enabled,
    cursorWidth: cursorWidth ?? this.cursorWidth,
    cursorHeight: cursorHeight ?? this.cursorHeight,
    cursorRadius: cursorRadius ?? this.cursorRadius,
    cursorColor: cursorColor ?? this.cursorColor,
    keyboardAppearance: keyboardAppearance ?? this.keyboardAppearance,
    scrollPadding: scrollPadding ?? this.scrollPadding,
    selectionControls: selectionControls ?? this.selectionControls,
    dragStartBehavior: dragStartBehavior ?? this.dragStartBehavior,
    onTap: onTap ?? this.onTap,
    onTapOutside: onTapOutside ?? this.onTapOutside,
    decoration: decoration ?? this.decoration,
    onEditingComplete: onEditingComplete ?? this.onEditingComplete,
    onSubmitted: onSubmitted ?? this.onSubmitted,
    scrollController: scrollController ?? this.scrollController,
    scrollPhysics: scrollPhysics ?? this.scrollPhysics,
    autofillHints: autofillHints ?? this.autofillHints,
    clipBehavior: clipBehavior ?? this.clipBehavior,
    enableInteractiveSelection:
        enableInteractiveSelection ?? this.enableInteractiveSelection,
    passwordVisible: passwordVisible ?? this.passwordVisible,
    prefixIcon: prefixIcon ?? this.prefixIcon,
    prefixIconAlignment: prefixIconAlignment ?? this.prefixIconAlignment,
    backgroundColor: backgroundColor ?? this.backgroundColor,
    borderRadius: borderRadius ?? this.borderRadius,
    border: border ?? this.border,
    focusedBorder: focusedBorder ?? this.focusedBorder,
    enabledBorder: enabledBorder ?? this.enabledBorder,
    contentPadding: contentPadding ?? this.contentPadding,
    passwordViewable: passwordViewable ?? this.passwordViewable,
    validateOnFocusChange:
        validateOnFocusChange ?? this.validateOnFocusChange,
    customValidationRule: customValidationRule ?? this.customValidationRule,
    header: header ?? this.header,
    footer: footer ?? this.footer,
    clearable: clearable ?? this.clearable,
    clearIcon: clearIcon ?? this.clearIcon,
    mask: mask ?? this.mask,
    maskMatch: maskMatch ?? this.maskMatch,
    maskedReturnValue: maskedReturnValue ?? this.maskedReturnValue,
    decorator: decorator ?? this.decorator,
    fillColor: fillColor ?? this.fillColor,
    filled: filled ?? this.filled,
    isDense: isDense ?? this.isDense,
    suffixIcon: suffixIcon ?? this.suffixIcon,
    suffixIconAlignment: suffixIconAlignment ?? this.suffixIconAlignment,
  );
}