defaultWith method
AndrossyField
defaultWith({
- 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,
- 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,
- 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,
- 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,
- 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,
- OnAndrossyFieldErrorCheck? onCheck,
- OnAndrossyFieldChanged? onChanged,
- OnAndrossyFieldError? onError,
- OnAndrossyFieldValid? onValid,
- 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,
);
}