defaultWith method

AndrossyField defaultWith({
  1. Curve? animationCurve,
  2. Duration? animationDuration,
  3. AndrossyFieldProperty<Color?>? backgroundColor,
  4. AndrossyFieldProperty<Color?>? borderColor,
  5. AndrossyFieldProperty<BorderRadius?>? borderRadius,
  6. AndrossyFieldTweenProperty<double?>? borderWidth,
  7. BoxConstraints? constraints,
  8. AndrossyFieldProperty<TextStyle?>? counterStyle,
  9. FloatingVisibility? counterVisibility,
  10. AndrossyFieldProperty<BoxDecoration?>? decoration,
  11. AndrossyFieldProperty<double?>? drawableEndSize,
  12. AndrossyFieldProperty<double?>? drawableEndPadding,
  13. AndrossyFieldProperty<Color?>? drawableEndTint,
  14. AndrossyFieldProperty<double?>? drawableStartSize,
  15. AndrossyFieldProperty<double?>? drawableStartPadding,
  16. AndrossyFieldProperty<Color?>? drawableStartTint,
  17. Color? errorColor,
  18. AndrossyFieldProperty<TextStyle?>? errorStyle,
  19. Alignment? floatingAlignment,
  20. EdgeInsets? floatingPadding,
  21. AndrossyFieldProperty<TextStyle?>? floatingStyle,
  22. FloatingVisibility? floatingVisibility,
  23. FocusNode? focusNode,
  24. AndrossyFieldProperty<TextStyle?>? footerStyle,
  25. FloatingVisibility? footerVisibility,
  26. double? height,
  27. AndrossyFieldProperty<TextStyle?>? helperStyle,
  28. Color? hintColor,
  29. IndicatorAlignment? indicatorAlignment,
  30. double? indicatorSize,
  31. double? indicatorStrokeWidth,
  32. AndrossyFieldProperty<Color?>? indicatorStrokeBackground,
  33. AndrossyFieldProperty<Color?>? indicatorStrokeColor,
  34. EdgeInsets? contentPadding,
  35. Color? primaryColor,
  36. Color? secondaryColor,
  37. StrutStyle? strutStyle,
  38. AndrossyFieldProperty<Color?>? underlineColor,
  39. AndrossyFieldProperty<double?>? underlineHeight,
  40. double? width,
  41. Clip? clipBehavior,
  42. ContentInsertionConfiguration? contentInsertionConfiguration,
  43. AndrossyFieldContextMenuBuilder? contextMenuBuilder,
  44. AndrossyFieldProperty<Color?>? cursorColor,
  45. double? cursorHeight,
  46. bool? cursorOpacityAnimates,
  47. Radius? cursorRadius,
  48. double? cursorWidth,
  49. DragStartBehavior? dragStartBehavior,
  50. bool? enableIMEPersonalizedLearning,
  51. bool? enableInteractiveSelection,
  52. bool? enableSuggestions,
  53. TextMagnifierConfiguration? magnifierConfiguration,
  54. MouseCursor? mouseCursor,
  55. String? obscuringCharacter,
  56. bool? scribbleEnabled,
  57. EdgeInsets? scrollPadding,
  58. ScrollPhysics? scrollPhysics,
  59. TextSelectionControls? selectionControls,
  60. BoxHeightStyle? selectionHeightStyle,
  61. BoxWidthStyle? selectionWidthStyle,
  62. SmartDashesType? smartDashesType,
  63. SmartQuotesType? smartQuotesType,
  64. SpellCheckConfiguration? spellCheckConfiguration,
  65. TextStyle? style,
  66. TextAlign? textAlign,
  67. TextCapitalization? textCapitalization,
  68. TextDirection? textDirection,
  69. Brightness? keyboardAppearance,
  70. bool? enabled,
  71. bool? autoDisposeMode,
  72. String? characters,
  73. AndrossyFieldProperty? drawableEnd,
  74. AndrossyFieldDrawableBuilder? drawableEndBuilder,
  75. bool? drawableEndVisible,
  76. AndrossyFieldTweenProperty? drawableEye,
  77. AndrossyFieldProperty? drawableStart,
  78. AndrossyFieldDrawableBuilder? drawableStartBuilder,
  79. bool? drawableStartVisible,
  80. String? errorText,
  81. String? floatingText,
  82. String? helperText,
  83. String? hintText,
  84. Widget? indicator,
  85. bool? indicatorVisible,
  86. String? ignorableCharacters,
  87. String? loadingText,
  88. int? maxCharacters,
  89. bool? maxCharactersAsLimit,
  90. int? minCharacters,
  91. List<TextInputFormatter>? inputFormatters,
  92. String? text,
  93. bool? autocorrect,
  94. List<String>? autofillHints,
  95. bool? autoFocus,
  96. TextEditingController? controller,
  97. bool? expands,
  98. TextInputAction? inputAction,
  99. TextInputType? inputType,
  100. int? maxLines,
  101. int? minLines,
  102. bool? obscureText,
  103. bool? readOnly,
  104. String? restorationId,
  105. ScrollController? scrollController,
  106. bool? showCursor,
  107. TextInputAction? textInputAction,
  108. UndoHistoryController? undoController,
  109. AndrossyFieldPrivateCommandListener? onAppPrivateCommand,
  110. AndrossyFieldVoidListener? onEditingComplete,
  111. AndrossyFieldSubmitListener? onSubmitted,
  112. AndrossyFieldTapOutsideListener? onTapOutside,
  113. OnAndrossyFieldErrorCheck? onCheck,
  114. OnAndrossyFieldChanged? onChanged,
  115. OnAndrossyFieldError? onError,
  116. OnAndrossyFieldValid? onValid,
  117. OnAndrossyFieldValidator? onValidator,
})

Implementation

AndrossyField defaultWith({
  /// GLOBAL PROPERTIES
  Curve? animationCurve,
  Duration? animationDuration,
  AndrossyFieldProperty<Color?>? backgroundColor,
  AndrossyFieldProperty<Color?>? borderColor,
  AndrossyFieldProperty<BorderRadius?>? borderRadius,
  AndrossyFieldTweenProperty<double?>? borderWidth,
  BoxConstraints? constraints,
  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,
  double? height,
  AndrossyFieldProperty<TextStyle?>? helperStyle,
  Color? hintColor,
  IndicatorAlignment? indicatorAlignment,
  double? indicatorSize,
  double? indicatorStrokeWidth,
  AndrossyFieldProperty<Color?>? indicatorStrokeBackground,
  AndrossyFieldProperty<Color?>? indicatorStrokeColor,
  EdgeInsets? contentPadding,
  Color? primaryColor,
  Color? secondaryColor,
  StrutStyle? strutStyle,
  AndrossyFieldProperty<Color?>? underlineColor,
  AndrossyFieldProperty<double?>? underlineHeight,
  double? width,

  /// TEXT FIELD GLOBAL 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,
  TextDirection? textDirection,
  Brightness? keyboardAppearance,

  /// LOCAL PROPERTIES
  bool? enabled,
  bool? autoDisposeMode,
  String? characters,
  AndrossyFieldProperty? drawableEnd,
  AndrossyFieldDrawableBuilder? drawableEndBuilder,
  bool? drawableEndVisible,
  AndrossyFieldTweenProperty? drawableEye,
  AndrossyFieldProperty? drawableStart,
  AndrossyFieldDrawableBuilder? drawableStartBuilder,
  bool? drawableStartVisible,
  String? errorText,
  String? floatingText,
  String? helperText,
  String? hintText,
  Widget? indicator,
  bool? indicatorVisible,
  String? ignorableCharacters,
  String? loadingText,
  int? maxCharacters,
  bool? maxCharactersAsLimit,
  int? minCharacters,
  List<TextInputFormatter>? inputFormatters,
  String? text,

  /// TEXT FIELD LOCAL PROPERTIES
  bool? autocorrect,
  List<String>? autofillHints,
  bool? autoFocus,
  TextEditingController? controller,
  bool? expands,
  TextInputAction? inputAction,
  TextInputType? inputType,
  int? maxLines,
  int? minLines,
  bool? obscureText,
  bool? readOnly,
  String? restorationId,
  ScrollController? scrollController,
  bool? showCursor,
  TextInputAction? textInputAction,
  UndoHistoryController? undoController,
  AndrossyFieldPrivateCommandListener? onAppPrivateCommand,
  AndrossyFieldVoidListener? onEditingComplete,
  AndrossyFieldSubmitListener? onSubmitted,
  AndrossyFieldTapOutsideListener? onTapOutside,

  /// CALLBACK LOCAL PROPERTIES
  OnAndrossyFieldErrorCheck? onCheck,
  OnAndrossyFieldChanged? onChanged,
  OnAndrossyFieldError? onError,
  OnAndrossyFieldValid? onValid,
  OnAndrossyFieldValidator? onValidator,
}) {
  return AndrossyField(
    key: key,

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

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

    /// LOCAL PROPERTIES
    enabled: this.enabled ?? enabled,
    autoDisposeMode: this.autoDisposeMode ?? autoDisposeMode,
    characters: this.characters ?? characters,
    drawableEnd: this.drawableEnd ?? drawableEnd,
    drawableEndBuilder: this.drawableEndBuilder ?? drawableEndBuilder,
    drawableEndVisible: this.drawableEndVisible ?? drawableEndVisible,
    drawableEye: this.drawableEye ?? drawableEye,
    drawableStart: this.drawableStart ?? drawableStart,
    drawableStartBuilder: this.drawableStartBuilder ?? drawableStartBuilder,
    drawableStartVisible: this.drawableStartVisible ?? drawableStartVisible,
    errorText: this.errorText ?? errorText,
    floatingText: this.floatingText ?? floatingText,
    helperText: this.helperText ?? helperText,
    hintText: this.hintText ?? hintText,
    indicator: this.indicator ?? indicator,
    indicatorVisible: this.indicatorVisible ?? indicatorVisible,
    ignorableCharacters: this.ignorableCharacters ?? ignorableCharacters,
    maxCharacters: this.maxCharacters ?? maxCharacters,
    maxCharactersAsLimit: this.maxCharactersAsLimit ?? maxCharactersAsLimit,
    minCharacters: this.minCharacters ?? minCharacters,
    inputFormatters: this.inputFormatters ?? inputFormatters,
    text: this.text ?? text,

    /// TEXT FIELD LOCAL PROPERTIES
    autocorrect: this.autocorrect ?? autocorrect,
    autofillHints: this.autofillHints ?? autofillHints,
    autoFocus: this.autoFocus ?? autoFocus,
    controller: this.controller ?? controller,
    expands: this.expands ?? expands,
    inputAction: this.inputAction ?? inputAction,
    inputType: this.inputType ?? inputType,
    maxLines: this.maxLines ?? maxLines,
    minLines: this.minLines ?? minLines,
    obscureText: this.obscureText ?? obscureText,
    readOnly: this.readOnly ?? readOnly,
    restorationId: this.restorationId ?? restorationId,
    scrollController: this.scrollController ?? scrollController,
    showCursor: this.showCursor ?? showCursor,
    undoController: this.undoController ?? undoController,
    onAppPrivateCommand: this.onAppPrivateCommand ?? onAppPrivateCommand,
    onEditingComplete: this.onEditingComplete ?? onEditingComplete,
    onSubmitted: this.onSubmitted ?? onSubmitted,
    onTapOutside: this.onTapOutside ?? onTapOutside,

    /// CALLBACK LOCAL PROPERTIES
    onCheck: this.onCheck ?? onCheck,
    onChanged: this.onChanged ?? onChanged,
    onError: this.onError ?? onError,
    onValid: this.onValid ?? onValid,
    onValidator: this.onValidator ?? onValidator,
  );
}