copyWith method

ValidatedFieldState copyWith({
  1. String? value,
  2. String? errorMessage,
  3. ValidatedFieldStatus? status,
  4. bool? isFocused,
  5. TextEditingController? controller,
})

Implementation

ValidatedFieldState copyWith({
  String? value,
  String? errorMessage,
  ValidatedFieldStatus? status,
  bool? isFocused,
  TextEditingController? controller,
}) {
  return ValidatedFieldState(
    errorMessage: errorMessage ?? this.errorMessage,
    status: status ?? this.status,
    value: value ?? this.value,
    validator: validator,
    controller: controller ?? this.controller,
  );
}