copyWith method

FlutstrapInput copyWith({
  1. Key? key,
  2. TextEditingController? controller,
  3. String? initialValue,
  4. FocusNode? focusNode,
  5. InputDecoration? decoration,
  6. TextInputType? keyboardType,
  7. TextCapitalization? textCapitalization,
  8. TextInputAction? textInputAction,
  9. TextStyle? style,
  10. StrutStyle? strutStyle,
  11. TextDirection? textDirection,
  12. TextAlign? textAlign,
  13. TextAlignVertical? textAlignVertical,
  14. bool? autofocus,
  15. bool? readOnly,
  16. bool? showCursor,
  17. String? obscuringCharacter,
  18. bool? obscureText,
  19. bool? autocorrect,
  20. SmartDashesType? smartDashesType,
  21. SmartQuotesType? smartQuotesType,
  22. bool? enableSuggestions,
  23. int? maxLines,
  24. int? minLines,
  25. bool? expands,
  26. int? maxLength,
  27. MaxLengthEnforcement? maxLengthEnforcement,
  28. void onChanged(
    1. String
    )?,
  29. void onTap()?,
  30. void onEditingComplete()?,
  31. void onFieldSubmitted(
    1. String
    )?,
  32. void onSaved(
    1. String?
    )?,
  33. String? validator(
    1. String?
    )?,
  34. Iterable<String>? autofillHints,
  35. bool? enabled,
  36. double? cursorWidth,
  37. double? cursorHeight,
  38. Radius? cursorRadius,
  39. Color? cursorColor,
  40. Brightness? keyboardAppearance,
  41. EdgeInsets? scrollPadding,
  42. bool? enableInteractiveSelection,
  43. TextSelectionControls? selectionControls,
  44. void onTapOutside(
    1. PointerDownEvent
    )?,
  45. InputCounterWidgetBuilder? buildCounter,
  46. ScrollPhysics? scrollPhysics,
  47. String? restorationId,
  48. bool? enableIMEPersonalizedLearning,
  49. MouseCursor? mouseCursor,
  50. Widget? prefixIcon,
  51. String? prefixText,
  52. Widget? suffixIcon,
  53. String? suffixText,
  54. String? labelText,
  55. String? hintText,
  56. String? errorText,
  57. String? helperText,
  58. FSInputVariant? variant,
  59. FSInputSize? size,
  60. bool? filled,
  61. Color? fillColor,
  62. String? semanticLabel,
  63. bool? enableFeedback,
  64. Duration? validationDelay,
})

Implementation

FlutstrapInput copyWith({
  Key? key,
  TextEditingController? controller,
  String? initialValue,
  FocusNode? focusNode,
  InputDecoration? decoration,
  TextInputType? keyboardType,
  TextCapitalization? textCapitalization,
  TextInputAction? textInputAction,
  TextStyle? style,
  StrutStyle? strutStyle,
  TextDirection? textDirection,
  TextAlign? textAlign,
  TextAlignVertical? textAlignVertical,
  bool? autofocus,
  bool? readOnly,
  bool? showCursor,
  String? obscuringCharacter,
  bool? obscureText,
  bool? autocorrect,
  SmartDashesType? smartDashesType,
  SmartQuotesType? smartQuotesType,
  bool? enableSuggestions,
  int? maxLines,
  int? minLines,
  bool? expands,
  int? maxLength,
  MaxLengthEnforcement? maxLengthEnforcement,
  void Function(String)? onChanged,
  void Function()? onTap,
  void Function()? onEditingComplete,
  void Function(String)? onFieldSubmitted,
  void Function(String?)? onSaved,
  String? Function(String?)? validator,
  Iterable<String>? autofillHints,
  bool? enabled,
  double? cursorWidth,
  double? cursorHeight,
  Radius? cursorRadius,
  Color? cursorColor,
  Brightness? keyboardAppearance,
  EdgeInsets? scrollPadding,
  bool? enableInteractiveSelection,
  TextSelectionControls? selectionControls,
  void Function(PointerDownEvent)? onTapOutside,
  InputCounterWidgetBuilder? buildCounter,
  ScrollPhysics? scrollPhysics,
  String? restorationId,
  bool? enableIMEPersonalizedLearning,
  MouseCursor? mouseCursor,
  Widget? prefixIcon,
  String? prefixText,
  Widget? suffixIcon,
  String? suffixText,
  String? labelText,
  String? hintText,
  String? errorText,
  String? helperText,
  FSInputVariant? variant,
  FSInputSize? size,
  bool? filled,
  Color? fillColor,
  String? semanticLabel,
  bool? enableFeedback,
  Duration? validationDelay,
}) {
  return FlutstrapInput(
    key: key ?? this.key,
    controller: controller ?? this.controller,
    initialValue: initialValue ?? this.initialValue,
    focusNode: focusNode ?? this.focusNode,
    decoration: decoration ?? this.decoration,
    keyboardType: keyboardType ?? this.keyboardType,
    textCapitalization: textCapitalization ?? this.textCapitalization,
    textInputAction: textInputAction ?? this.textInputAction,
    style: style ?? this.style,
    strutStyle: strutStyle ?? this.strutStyle,
    textDirection: textDirection ?? this.textDirection,
    textAlign: textAlign ?? this.textAlign,
    textAlignVertical: textAlignVertical ?? this.textAlignVertical,
    autofocus: autofocus ?? this.autofocus,
    readOnly: readOnly ?? this.readOnly,
    showCursor: showCursor ?? this.showCursor,
    obscuringCharacter: obscuringCharacter ?? this.obscuringCharacter,
    obscureText: obscureText ?? this.obscureText,
    autocorrect: autocorrect ?? this.autocorrect,
    smartDashesType: smartDashesType ?? this.smartDashesType,
    smartQuotesType: smartQuotesType ?? this.smartQuotesType,
    enableSuggestions: enableSuggestions ?? this.enableSuggestions,
    maxLines: maxLines ?? this.maxLines,
    minLines: minLines ?? this.minLines,
    expands: expands ?? this.expands,
    maxLength: maxLength ?? this.maxLength,
    maxLengthEnforcement: maxLengthEnforcement ?? this.maxLengthEnforcement,
    onChanged: onChanged ?? this.onChanged,
    onTap: onTap ?? this.onTap,
    onEditingComplete: onEditingComplete ?? this.onEditingComplete,
    onFieldSubmitted: onFieldSubmitted ?? this.onFieldSubmitted,
    onSaved: onSaved ?? this.onSaved,
    validator: validator ?? this.validator,
    autofillHints: autofillHints ?? this.autofillHints,
    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,
    enableInteractiveSelection:
        enableInteractiveSelection ?? this.enableInteractiveSelection,
    selectionControls: selectionControls ?? this.selectionControls,
    onTapOutside: onTapOutside ?? this.onTapOutside,
    buildCounter: buildCounter ?? this.buildCounter,
    scrollPhysics: scrollPhysics ?? this.scrollPhysics,
    restorationId: restorationId ?? this.restorationId,
    enableIMEPersonalizedLearning:
        enableIMEPersonalizedLearning ?? this.enableIMEPersonalizedLearning,
    mouseCursor: mouseCursor ?? this.mouseCursor,
    prefixIcon: prefixIcon ?? this.prefixIcon,
    prefixText: prefixText ?? this.prefixText,
    suffixIcon: suffixIcon ?? this.suffixIcon,
    suffixText: suffixText ?? this.suffixText,
    labelText: labelText ?? this.labelText,
    hintText: hintText ?? this.hintText,
    errorText: errorText ?? this.errorText,
    helperText: helperText ?? this.helperText,
    variant: variant ?? this.variant,
    size: size ?? this.size,
    filled: filled ?? this.filled,
    fillColor: fillColor ?? this.fillColor,
    semanticLabel: semanticLabel ?? this.semanticLabel,
    enableFeedback: enableFeedback ?? this.enableFeedback,
    validationDelay: validationDelay ?? this.validationDelay,
  );
}