copyWith method
FitTextInput
copyWith({
- String? label,
- TextEditingController? controller,
- bool? autofocus,
- TextInputAction? inputAction,
- bool? markAsRequired,
- String? hint,
- bool? hideValue,
- Widget? suffix,
- FocusNode? focusNode,
- AutovalidateMode? validationMode,
- TextInputType? keyboardType,
- TextCapitalization? capitalization,
- List<
TextInputFormatter> ? formatters, - String? validation()?,
- dynamic onFieldSubmitted()?,
- dynamic onChange()?,
- EdgeInsets? margin,
- EdgeInsets? padding,
- int? maxLines,
- int? minLines,
- bool? expand,
- double? width,
- double? height,
- bool? readonly,
Copies an instance and override properties.
Implementation
FitTextInput copyWith({
String? label,
TextEditingController? controller,
bool? autofocus,
TextInputAction? inputAction,
bool? markAsRequired,
String? hint,
bool? hideValue,
Widget? suffix,
FocusNode? focusNode,
AutovalidateMode? validationMode,
TextInputType? keyboardType,
TextCapitalization? capitalization,
List<TextInputFormatter>? formatters,
String? Function(String?)? validation,
dynamic Function(String)? onFieldSubmitted,
dynamic Function(String)? onChange,
EdgeInsets? margin,
EdgeInsets? padding,
int? maxLines,
int? minLines,
bool? expand,
double? width,
double? height,
bool? readonly,
}) =>
FitTextInput(
label: label ?? this.label,
controller: controller ?? this.controller,
autofocus: autofocus ?? this.autofocus,
inputAction: inputAction ?? this.inputAction,
markAsRequired: markAsRequired ?? this.markAsRequired,
hint: hint ?? this.hint,
hideValue: hideValue ?? this.hideValue,
suffix: suffix ?? this.suffix,
focusNode: focusNode ?? this.focusNode,
validationMode: validationMode ?? this.validationMode,
keyboardType: keyboardType ?? this.keyboardType,
capitalization: capitalization ?? this.capitalization,
formatters: formatters ?? this.formatters,
validation: validation ?? this.validation,
onFieldSubmitted: onFieldSubmitted ?? this.onFieldSubmitted,
onChange: onChange ?? this.onChange,
margin: margin ?? this.margin,
padding: padding ?? this.padding,
maxLines: maxLines ?? this.maxLines,
minLines: minLines ?? this.minLines,
expand: expand ?? this.expand,
width: width ?? this.width,
height: height ?? this.height,
readonly: readonly ?? this.readonly,
);