copyWith method
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 onChanged()?,
- void onTap()?,
- void onEditingComplete()?,
- void onFieldSubmitted()?,
- void onSaved()?,
- String? validator()?,
- Iterable<
String> ? autofillHints, - bool? enabled,
- double? cursorWidth,
- double? cursorHeight,
- Radius? cursorRadius,
- Color? cursorColor,
- Brightness? keyboardAppearance,
- EdgeInsets? scrollPadding,
- bool? enableInteractiveSelection,
- TextSelectionControls? selectionControls,
- void 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,
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,
);
}