copyWith method
AndrossyForm
copyWith({
- AndrossyFormController? controller,
- Axis? direction,
- CrossAxisAlignment? crossAxisAlignment,
- MainAxisAlignment? mainAxisAlignment,
- MainAxisSize? mainAxisSize,
- TextBaseline? textBaseline,
- TextDirection? textDirection,
- VerticalDirection? verticalDirection,
- List<
Widget> ? children, - 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?> ? 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, - 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,
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,
);
}