copyWith method

AndrossyForm copyWith({
  1. AndrossyFormController? controller,
  2. Axis? direction,
  3. CrossAxisAlignment? crossAxisAlignment,
  4. MainAxisAlignment? mainAxisAlignment,
  5. MainAxisSize? mainAxisSize,
  6. TextBaseline? textBaseline,
  7. TextDirection? textDirection,
  8. VerticalDirection? verticalDirection,
  9. List<Widget>? children,
  10. Curve? animationCurve,
  11. Duration? animationDuration,
  12. AndrossyFieldProperty<Color?>? backgroundColor,
  13. AndrossyFieldProperty<Color?>? borderColor,
  14. AndrossyFieldProperty<BorderRadius?>? borderRadius,
  15. AndrossyFieldTweenProperty<double?>? borderWidth,
  16. BoxConstraints? constraints,
  17. EdgeInsets? contentPadding,
  18. AndrossyFieldProperty<TextStyle?>? counterStyle,
  19. FloatingVisibility? counterVisibility,
  20. AndrossyFieldProperty<BoxDecoration?>? decoration,
  21. AndrossyFieldProperty<double?>? drawableEndSize,
  22. AndrossyFieldProperty<double?>? drawableEndPadding,
  23. AndrossyFieldProperty<Color?>? drawableEndTint,
  24. AndrossyFieldProperty<double?>? drawableStartSize,
  25. AndrossyFieldProperty<double?>? drawableStartPadding,
  26. AndrossyFieldProperty<Color?>? drawableStartTint,
  27. Color? errorColor,
  28. AndrossyFieldProperty<TextStyle?>? errorStyle,
  29. Alignment? floatingAlignment,
  30. EdgeInsets? floatingPadding,
  31. AndrossyFieldProperty<TextStyle?>? floatingStyle,
  32. FloatingVisibility? floatingVisibility,
  33. FocusNode? focusNode,
  34. AndrossyFieldProperty<TextStyle?>? footerStyle,
  35. FloatingVisibility? footerVisibility,
  36. AndrossyFieldProperty<TextStyle?>? helperStyle,
  37. Color? hintColor,
  38. double? indicatorSize,
  39. double? indicatorStrokeWidth,
  40. AndrossyFieldProperty<Color?>? indicatorStrokeBackground,
  41. AndrossyFieldProperty<Color?>? indicatorStrokeColor,
  42. Color? primaryColor,
  43. Color? secondaryColor,
  44. StrutStyle? strutStyle,
  45. AndrossyFieldProperty<Color?>? underlineColor,
  46. AndrossyFieldProperty<double?>? underlineHeight,
  47. Clip? clipBehavior,
  48. ContentInsertionConfiguration? contentInsertionConfiguration,
  49. AndrossyFieldContextMenuBuilder? contextMenuBuilder,
  50. AndrossyFieldProperty<Color>? cursorColor,
  51. double? cursorHeight,
  52. bool? cursorOpacityAnimates,
  53. Radius? cursorRadius,
  54. double? cursorWidth,
  55. DragStartBehavior? dragStartBehavior,
  56. bool? enableIMEPersonalizedLearning,
  57. bool? enableInteractiveSelection,
  58. bool? enableSuggestions,
  59. TextMagnifierConfiguration? magnifierConfiguration,
  60. MouseCursor? mouseCursor,
  61. String? obscuringCharacter,
  62. bool? scribbleEnabled,
  63. EdgeInsets? scrollPadding,
  64. ScrollPhysics? scrollPhysics,
  65. TextSelectionControls? selectionControls,
  66. BoxHeightStyle? selectionHeightStyle,
  67. BoxWidthStyle? selectionWidthStyle,
  68. SmartDashesType? smartDashesType,
  69. SmartQuotesType? smartQuotesType,
  70. SpellCheckConfiguration? spellCheckConfiguration,
  71. TextStyle? style,
  72. TextAlign? textAlign,
  73. TextCapitalization? textCapitalization,
  74. Brightness? keyboardAppearance,
})

Implementation

AndrossyForm copyWith({
  AndrossyFormController? controller,
  Axis? direction,
  CrossAxisAlignment? crossAxisAlignment,
  MainAxisAlignment? mainAxisAlignment,
  MainAxisSize? mainAxisSize,
  TextBaseline? textBaseline,
  TextDirection? textDirection,
  VerticalDirection? verticalDirection,
  List<Widget>? children,

  /// CHILDREN PROPERTIES
  /// FIELD PROPERTIES
  Curve? animationCurve,
  Duration? animationDuration,
  AndrossyFieldProperty<Color?>? backgroundColor,
  AndrossyFieldProperty<Color?>? borderColor,
  AndrossyFieldProperty<BorderRadius?>? borderRadius,
  AndrossyFieldTweenProperty<double?>? borderWidth,
  BoxConstraints? constraints,
  EdgeInsets? contentPadding,
  AndrossyFieldProperty<TextStyle?>? counterStyle,
  FloatingVisibility? counterVisibility,
  AndrossyFieldProperty<BoxDecoration?>? decoration,
  AndrossyFieldProperty<double?>? drawableEndSize,
  AndrossyFieldProperty<double?>? drawableEndPadding,
  AndrossyFieldProperty<Color?>? drawableEndTint,
  AndrossyFieldProperty<double?>? drawableStartSize,
  AndrossyFieldProperty<double?>? drawableStartPadding,
  AndrossyFieldProperty<Color?>? drawableStartTint,
  Color? errorColor,
  AndrossyFieldProperty<TextStyle?>? errorStyle,
  Alignment? floatingAlignment,
  EdgeInsets? floatingPadding,
  AndrossyFieldProperty<TextStyle?>? floatingStyle,
  FloatingVisibility? floatingVisibility,
  FocusNode? focusNode,
  AndrossyFieldProperty<TextStyle?>? footerStyle,
  FloatingVisibility? footerVisibility,
  AndrossyFieldProperty<TextStyle?>? helperStyle,
  Color? hintColor,
  double? indicatorSize,
  double? indicatorStrokeWidth,
  AndrossyFieldProperty<Color?>? indicatorStrokeBackground,
  AndrossyFieldProperty<Color?>? indicatorStrokeColor,
  Color? primaryColor,
  Color? secondaryColor,
  StrutStyle? strutStyle,
  AndrossyFieldProperty<Color?>? underlineColor,
  AndrossyFieldProperty<double?>? underlineHeight,

  /// TEXT FIELD PROPERTIES
  Clip? clipBehavior,
  ContentInsertionConfiguration? contentInsertionConfiguration,
  AndrossyFieldContextMenuBuilder? contextMenuBuilder,
  AndrossyFieldProperty<Color>? cursorColor,
  double? cursorHeight,
  bool? cursorOpacityAnimates,
  Radius? cursorRadius,
  double? cursorWidth,
  DragStartBehavior? dragStartBehavior,
  bool? enableIMEPersonalizedLearning,
  bool? enableInteractiveSelection,
  bool? enableSuggestions,
  TextMagnifierConfiguration? magnifierConfiguration,
  MouseCursor? mouseCursor,
  String? obscuringCharacter,
  bool? scribbleEnabled,
  EdgeInsets? scrollPadding,
  ScrollPhysics? scrollPhysics,
  TextSelectionControls? selectionControls,
  BoxHeightStyle? selectionHeightStyle,
  BoxWidthStyle? selectionWidthStyle,
  SmartDashesType? smartDashesType,
  SmartQuotesType? smartQuotesType,
  SpellCheckConfiguration? spellCheckConfiguration,
  TextStyle? style,
  TextAlign? textAlign,
  TextCapitalization? textCapitalization,
  Brightness? keyboardAppearance,
}) {
  return AndrossyForm(
    controller: controller ?? this.controller,
    direction: direction ?? this.direction,
    crossAxisAlignment: crossAxisAlignment ?? this.crossAxisAlignment,
    mainAxisAlignment: mainAxisAlignment ?? this.mainAxisAlignment,
    mainAxisSize: mainAxisSize ?? this.mainAxisSize,
    textBaseline: textBaseline ?? this.textBaseline,
    textDirection: textDirection ?? this.textDirection,
    verticalDirection: verticalDirection ?? this.verticalDirection,

    /// FIELD PROPERTIES
    animationCurve: animationCurve ?? this.animationCurve,
    animationDuration: animationDuration ?? this.animationDuration,
    backgroundColor: backgroundColor ?? this.backgroundColor,
    borderColor: borderColor ?? this.borderColor,
    borderRadius: borderRadius ?? this.borderRadius,
    borderWidth: borderWidth ?? this.borderWidth,
    constraints: constraints ?? this.constraints,
    contentPadding: contentPadding ?? this.contentPadding,
    counterStyle: counterStyle ?? this.counterStyle,
    counterVisibility: counterVisibility ?? this.counterVisibility,
    decoration: decoration ?? this.decoration,
    drawableEndSize: drawableEndSize ?? this.drawableEndSize,
    drawableEndPadding: drawableEndPadding ?? this.drawableEndPadding,
    drawableEndTint: drawableEndTint ?? this.drawableEndTint,
    drawableStartSize: drawableStartSize ?? this.drawableStartSize,
    drawableStartPadding: drawableStartPadding ?? this.drawableStartPadding,
    drawableStartTint: drawableStartTint ?? this.drawableStartTint,
    errorColor: errorColor ?? this.errorColor,
    errorStyle: errorStyle ?? this.errorStyle,
    floatingAlignment: floatingAlignment ?? this.floatingAlignment,
    floatingPadding: floatingPadding ?? this.floatingPadding,
    floatingStyle: floatingStyle ?? this.floatingStyle,
    floatingVisibility: floatingVisibility ?? this.floatingVisibility,
    focusNode: focusNode ?? this.focusNode,
    footerStyle: footerStyle ?? this.footerStyle,
    footerVisibility: footerVisibility ?? this.footerVisibility,
    helperStyle: helperStyle ?? this.helperStyle,
    hintColor: hintColor ?? this.hintColor,
    indicatorSize: indicatorSize ?? this.indicatorSize,
    indicatorStrokeWidth: indicatorStrokeWidth ?? this.indicatorStrokeWidth,
    indicatorStrokeBackground:
        indicatorStrokeBackground ?? this.indicatorStrokeBackground,
    indicatorStrokeColor: indicatorStrokeColor ?? this.indicatorStrokeColor,
    primaryColor: primaryColor ?? this.primaryColor,
    secondaryColor: secondaryColor ?? this.secondaryColor,
    strutStyle: strutStyle ?? this.strutStyle,
    underlineColor: underlineColor ?? this.underlineColor,
    underlineHeight: underlineHeight ?? this.underlineHeight,

    /// TEXT FIELD PROPERTIES
    clipBehavior: clipBehavior ?? this.clipBehavior,
    contentInsertionConfiguration:
        contentInsertionConfiguration ?? this.contentInsertionConfiguration,
    contextMenuBuilder: contextMenuBuilder ?? this.contextMenuBuilder,
    cursorColor: cursorColor ?? this.cursorColor,
    cursorHeight: cursorHeight ?? this.cursorHeight,
    cursorOpacityAnimates:
        cursorOpacityAnimates ?? this.cursorOpacityAnimates,
    cursorRadius: cursorRadius ?? this.cursorRadius,
    cursorWidth: cursorWidth ?? this.cursorWidth,
    dragStartBehavior: dragStartBehavior ?? this.dragStartBehavior,
    enableIMEPersonalizedLearning:
        enableIMEPersonalizedLearning ?? this.enableIMEPersonalizedLearning,
    enableInteractiveSelection:
        enableInteractiveSelection ?? this.enableInteractiveSelection,
    enableSuggestions: enableSuggestions ?? this.enableSuggestions,
    magnifierConfiguration:
        magnifierConfiguration ?? this.magnifierConfiguration,
    mouseCursor: mouseCursor ?? this.mouseCursor,
    obscuringCharacter: obscuringCharacter ?? this.obscuringCharacter,
    scribbleEnabled: scribbleEnabled ?? this.scribbleEnabled,
    scrollPadding: scrollPadding ?? this.scrollPadding,
    scrollPhysics: scrollPhysics ?? this.scrollPhysics,
    selectionControls: selectionControls ?? this.selectionControls,
    selectionHeightStyle: selectionHeightStyle ?? this.selectionHeightStyle,
    selectionWidthStyle: selectionWidthStyle ?? this.selectionWidthStyle,
    smartDashesType: smartDashesType ?? this.smartDashesType,
    smartQuotesType: smartQuotesType ?? this.smartQuotesType,
    spellCheckConfiguration:
        spellCheckConfiguration ?? this.spellCheckConfiguration,
    style: style ?? this.style,
    textAlign: textAlign ?? this.textAlign,
    textCapitalization: textCapitalization ?? this.textCapitalization,
    keyboardAppearance: keyboardAppearance ?? this.keyboardAppearance,
    children: children ?? this.children,
  );
}