copyWith method

FxFormControl copyWith({
  1. TextEditingController? controller,
  2. bool? autofocus,
  3. Widget? prefixIcon,
  4. Widget? suffixIcon,
  5. String? label,
  6. String? hint,
  7. FormFieldValidator<String>? validator,
  8. TextInputType? keyboardType,
  9. bool? isPassword,
  10. TextInputAction? textInputAction,
  11. bool? isHidden,
  12. 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,
);