copyWith method
FxFormControl
copyWith({
- TextEditingController? controller,
- bool? autofocus,
- Widget? prefixIcon,
- Widget? suffixIcon,
- String? label,
- String? hint,
- FormFieldValidator<
String> ? validator, - TextInputType? keyboardType,
- bool? isPassword,
- TextInputAction? textInputAction,
- bool? isHidden,
- String? initialValue,
Implementation
FxFormControl copyWith({
TextEditingController? controller,
bool? autofocus,
Widget? prefixIcon,
Widget? suffixIcon,
String? label,
String? hint,
FormFieldValidator<String>? validator,
TextInputType? keyboardType,
bool? isPassword,
TextInputAction? textInputAction,
bool? isHidden,
String? initialValue,
}) => FxFormControl(
autofocus: autofocus ?? this.autofocus,
prefixIcon: prefixIcon ?? this.prefixIcon,
suffixIcon: suffixIcon ?? this.suffixIcon,
label: label ?? this.label,
hint: hint ?? this.hint,
validator: validator ?? this.validator,
keyboardType: keyboardType ?? this.keyboardType,
isPassword: isPassword ?? this.isPassword,
textInputAction: textInputAction ?? this.textInputAction,
controller: controller ?? this.controller,
isHidden: isHidden ?? this.isHidden,
initialValue: initialValue ?? this.initialValue,
);