copyWith method

NyTextField copyWith({
  1. String? labelText,
  2. TextStyle? labelStyle,
  3. TextEditingController? controller,
  4. bool? obscureText,
  5. int? maxLines,
  6. int? minLines,
  7. TextInputType? keyboardType,
  8. bool? autoFocus,
  9. TextAlign? textAlign,
  10. bool? enableSuggestions,
  11. FocusNode? focusNode,
  12. String? hintText,
  13. TextStyle? hintStyle,
  14. String? validationRules,
  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. bool? passwordViewable,
  31. bool? validateOnFocusChange,
  32. MouseCursor? mouseCursor,
  33. String? validationErrorMessage,
  34. TextCapitalization? textCapitalization,
  35. MaxLengthEnforcement? maxLengthEnforcement,
  36. AppPrivateCommandCallback? onAppPrivateCommand,
  37. List<TextInputFormatter>? inputFormatters,
  38. bool? enabled,
  39. double? cursorWidth,
  40. double? cursorHeight,
  41. Radius? cursorRadius,
  42. Color? cursorColor,
  43. Brightness? keyboardAppearance,
  44. EdgeInsets? scrollPadding,
  45. TextSelectionControls? selectionControls,
  46. DragStartBehavior? dragStartBehavior,
  47. GestureTapCallback? onTap,
  48. TapRegionCallback? onTapOutside,
  49. InputDecoration? decoration,
  50. VoidCallback? onEditingComplete,
  51. ValueChanged<String>? onSubmitted,
  52. ScrollController? scrollController,
  53. ScrollPhysics? scrollPhysics,
  54. Iterable<String>? autofillHints,
  55. Clip? clipBehavior,
  56. dynamic handleValidationError(
    1. String handleError
    )?,
  57. bool? passwordVisible,
  58. String? type,
  59. Widget? prefixIcon,
  60. Color? backgroundColor,
  61. BorderRadius? borderRadius,
  62. InputBorder? border,
  63. InputBorder? focusedBorder,
  64. InputBorder? enabledBorder,
  65. EdgeInsetsGeometry? contentPadding,
  66. bool customValidationRule(
    1. dynamic value
    )?,
  67. String? title,
  68. TextStyle? titleStyle,
  69. bool? clearable,
  70. Widget? clearIcon,
  71. String? mask,
  72. String? maskMatch,
  73. bool? maskedReturnValue,
  74. DecoratorTextField? decorator,
})

Copy with method

Implementation

NyTextField copyWith({
  String? labelText,
  TextStyle? labelStyle,
  TextEditingController? controller,
  bool? obscureText,
  int? maxLines,
  int? minLines,
  TextInputType? keyboardType,
  bool? autoFocus,
  TextAlign? textAlign,
  bool? enableSuggestions,
  FocusNode? focusNode,
  String? hintText,
  TextStyle? hintStyle,
  String? validationRules,
  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,
  bool? passwordViewable,
  bool? validateOnFocusChange,
  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,
  Function(String handleError)? handleValidationError,
  bool? passwordVisible,
  String? type,
  Widget? prefixIcon,
  Color? backgroundColor,
  BorderRadius? borderRadius,
  InputBorder? border,
  InputBorder? focusedBorder,
  InputBorder? enabledBorder,
  EdgeInsetsGeometry? contentPadding,
  bool Function(dynamic value)? customValidationRule,
  String? title,
  TextStyle? titleStyle,
  bool? clearable,
  Widget? clearIcon,
  String? mask,
  String? maskMatch,
  bool? maskedReturnValue,
  DecoratorTextField? decorator,
}) {
  return NyTextField(
    type: type ?? this.type,
    labelText: labelText ?? this.labelText,
    labelStyle: labelStyle ?? this.labelStyle,
    controller: controller ?? this.controller,
    obscureText: obscureText ?? this.obscureText,
    maxLines: maxLines ?? this.maxLines,
    minLines: minLines ?? this.minLines,
    keyboardType: keyboardType ?? this.keyboardType,
    autoFocus: autoFocus ?? this.autoFocus,
    validateOnFocusChange:
        validateOnFocusChange ?? this.validateOnFocusChange,
    textAlign: textAlign ?? this.textAlign,
    enableSuggestions: enableSuggestions ?? this.enableSuggestions,
    focusNode: focusNode ?? this.focusNode,
    hintText: hintText ?? this.hintText,
    passwordViewable: passwordViewable ?? this.passwordViewable,
    hintStyle: hintStyle ?? this.hintStyle,
    validationRules: validationRules ?? this.validationRules,
    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,
    handleValidationError:
        handleValidationError ?? this.handleValidationError,
    passwordVisible: passwordVisible ?? this.passwordVisible,
    prefixIcon: prefixIcon ?? this.prefixIcon,
    backgroundColor: backgroundColor ?? this.backgroundColor,
    borderRadius: borderRadius ?? this.borderRadius,
    border: border ?? this.border,
    focusedBorder: focusedBorder ?? this.focusedBorder,
    enabledBorder: enabledBorder ?? this.enabledBorder,
    contentPadding: contentPadding ?? this.contentPadding,
    customValidationRule: customValidationRule ?? this.customValidationRule,
    header: header ?? header,
    footer: footer ?? 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,
  );
}