copyWith method
NyTextField
copyWith({
- String? labelText,
- TextStyle? labelStyle,
- TextEditingController? controller,
- bool? obscureText,
- int? maxLines,
- int? minLines,
- TextInputType? keyboardType,
- bool? autoFocus,
- TextAlign? textAlign,
- bool? enableSuggestions,
- FocusNode? focusNode,
- String? hintText,
- TextStyle? hintStyle,
- String? validationRules,
- String? dummyData,
- dynamic onChanged(
- String value
- TextInputAction? textInputAction,
- TextStyle? style,
- StrutStyle? strutStyle,
- TextAlignVertical? textAlignVertical,
- TextDirection? textDirection,
- String? obscuringCharacter,
- bool? autocorrect,
- SmartDashesType? smartDashesType,
- SmartQuotesType? smartQuotesType,
- bool? expands,
- bool? readOnly,
- bool? showCursor,
- int? maxLength,
- bool? passwordViewable,
- bool? validateOnFocusChange,
- MouseCursor? mouseCursor,
- String? validationErrorMessage,
- TextCapitalization? textCapitalization,
- MaxLengthEnforcement? maxLengthEnforcement,
- AppPrivateCommandCallback? onAppPrivateCommand,
- List<
TextInputFormatter> ? inputFormatters, - bool? enabled,
- double? cursorWidth,
- double? cursorHeight,
- Radius? cursorRadius,
- Color? cursorColor,
- Brightness? keyboardAppearance,
- EdgeInsets? scrollPadding,
- TextSelectionControls? selectionControls,
- DragStartBehavior? dragStartBehavior,
- GestureTapCallback? onTap,
- TapRegionCallback? onTapOutside,
- InputDecoration? decoration,
- VoidCallback? onEditingComplete,
- ValueChanged<
String> ? onSubmitted, - ScrollController? scrollController,
- ScrollPhysics? scrollPhysics,
- Iterable<
String> ? autofillHints, - Clip? clipBehavior,
- dynamic handleValidationError(
- String handleError
- bool? passwordVisible,
- String? type,
- Widget? prefixIcon,
- Color? backgroundColor,
- BorderRadius? borderRadius,
- InputBorder? border,
- InputBorder? focusedBorder,
- InputBorder? enabledBorder,
- EdgeInsetsGeometry? contentPadding,
- bool customValidationRule(
- dynamic value
- String? title,
- TextStyle? titleStyle,
- bool? clearable,
- Widget? clearIcon,
- String? mask,
- String? maskMatch,
- bool? maskedReturnValue,
- DecoratorTextField? decorator,
Copy with method
Implementation
NyTextField copyWith({
String? labelText,
TextStyle? labelStyle,
TextEditingController? controller,
bool? obscureText,
int? maxLines,
int? minLines,
TextInputType? keyboardType,
bool? autoFocus,
TextAlign? textAlign,
bool? enableSuggestions,
FocusNode? focusNode,
String? hintText,
TextStyle? hintStyle,
String? validationRules,
String? dummyData,
Function(String value)? onChanged,
TextInputAction? textInputAction,
TextStyle? style,
StrutStyle? strutStyle,
TextAlignVertical? textAlignVertical,
TextDirection? textDirection,
String? obscuringCharacter,
bool? autocorrect,
SmartDashesType? smartDashesType,
SmartQuotesType? smartQuotesType,
bool? expands,
bool? readOnly,
bool? showCursor,
int? maxLength,
bool? passwordViewable,
bool? validateOnFocusChange,
MouseCursor? mouseCursor,
String? validationErrorMessage,
TextCapitalization? textCapitalization,
MaxLengthEnforcement? maxLengthEnforcement,
AppPrivateCommandCallback? onAppPrivateCommand,
List<TextInputFormatter>? inputFormatters,
bool? enabled,
double? cursorWidth,
double? cursorHeight,
Radius? cursorRadius,
Color? cursorColor,
Brightness? keyboardAppearance,
EdgeInsets? scrollPadding,
TextSelectionControls? selectionControls,
DragStartBehavior? dragStartBehavior,
GestureTapCallback? onTap,
TapRegionCallback? onTapOutside,
InputDecoration? decoration,
VoidCallback? onEditingComplete,
ValueChanged<String>? onSubmitted,
ScrollController? scrollController,
ScrollPhysics? scrollPhysics,
Iterable<String>? autofillHints,
Clip? clipBehavior,
Function(String handleError)? handleValidationError,
bool? passwordVisible,
String? type,
Widget? prefixIcon,
Color? backgroundColor,
BorderRadius? borderRadius,
InputBorder? border,
InputBorder? focusedBorder,
InputBorder? enabledBorder,
EdgeInsetsGeometry? contentPadding,
bool Function(dynamic value)? customValidationRule,
String? title,
TextStyle? titleStyle,
bool? clearable,
Widget? clearIcon,
String? mask,
String? maskMatch,
bool? maskedReturnValue,
DecoratorTextField? decorator,
}) {
return NyTextField(
type: type ?? this.type,
labelText: labelText ?? this.labelText,
labelStyle: labelStyle ?? this.labelStyle,
controller: controller ?? this.controller,
obscureText: obscureText ?? this.obscureText,
maxLines: maxLines ?? this.maxLines,
minLines: minLines ?? this.minLines,
keyboardType: keyboardType ?? this.keyboardType,
autoFocus: autoFocus ?? this.autoFocus,
validateOnFocusChange:
validateOnFocusChange ?? this.validateOnFocusChange,
textAlign: textAlign ?? this.textAlign,
enableSuggestions: enableSuggestions ?? this.enableSuggestions,
focusNode: focusNode ?? this.focusNode,
hintText: hintText ?? this.hintText,
passwordViewable: passwordViewable ?? this.passwordViewable,
hintStyle: hintStyle ?? this.hintStyle,
validationRules: validationRules ?? this.validationRules,
dummyData: dummyData ?? this.dummyData,
onChanged: onChanged ?? this.onChanged,
textInputAction: textInputAction ?? this.textInputAction,
style: style ?? this.style,
strutStyle: strutStyle ?? this.strutStyle,
textAlignVertical: textAlignVertical ?? this.textAlignVertical,
textDirection: textDirection ?? this.textDirection,
obscuringCharacter: obscuringCharacter ?? this.obscuringCharacter,
autocorrect: autocorrect ?? this.autocorrect,
smartDashesType: smartDashesType ?? this.smartDashesType,
smartQuotesType: smartQuotesType ?? this.smartQuotesType,
expands: expands ?? this.expands,
readOnly: readOnly ?? this.readOnly,
showCursor: showCursor ?? this.showCursor,
maxLength: maxLength ?? this.maxLength,
mouseCursor: mouseCursor ?? this.mouseCursor,
validationErrorMessage:
validationErrorMessage ?? this.validationErrorMessage,
textCapitalization: textCapitalization ?? this.textCapitalization,
maxLengthEnforcement: maxLengthEnforcement ?? this.maxLengthEnforcement,
onAppPrivateCommand: onAppPrivateCommand ?? this.onAppPrivateCommand,
inputFormatters: inputFormatters ?? this.inputFormatters,
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,
selectionControls: selectionControls ?? this.selectionControls,
dragStartBehavior: dragStartBehavior ?? this.dragStartBehavior,
onTap: onTap ?? this.onTap,
onTapOutside: onTapOutside ?? this.onTapOutside,
decoration: decoration ?? this.decoration,
onEditingComplete: onEditingComplete ?? this.onEditingComplete,
onSubmitted: onSubmitted ?? this.onSubmitted,
scrollController: scrollController ?? this.scrollController,
scrollPhysics: scrollPhysics ?? this.scrollPhysics,
autofillHints: autofillHints ?? this.autofillHints,
clipBehavior: clipBehavior ?? this.clipBehavior,
handleValidationError:
handleValidationError ?? this.handleValidationError,
passwordVisible: passwordVisible ?? this.passwordVisible,
prefixIcon: prefixIcon ?? this.prefixIcon,
backgroundColor: backgroundColor ?? this.backgroundColor,
borderRadius: borderRadius ?? this.borderRadius,
border: border ?? this.border,
focusedBorder: focusedBorder ?? this.focusedBorder,
enabledBorder: enabledBorder ?? this.enabledBorder,
contentPadding: contentPadding ?? this.contentPadding,
customValidationRule: customValidationRule ?? this.customValidationRule,
header: header ?? header,
footer: footer ?? footer,
clearable: clearable ?? this.clearable,
clearIcon: clearIcon ?? this.clearIcon,
mask: mask ?? this.mask,
maskMatch: maskMatch ?? this.maskMatch,
maskedReturnValue: maskedReturnValue ?? this.maskedReturnValue,
decorator: decorator ?? this.decorator,
);
}