copyWith method

InputStatus copyWith({
  1. bool? hovered,
  2. bool? focused,
  3. bool? touched,
  4. bool? dirty,
  5. bool? empty,
  6. bool? full,
  7. bool? edited,
  8. bool? submitted,
  9. FetchStatus? fetch,
})

Implementation

InputStatus copyWith({
  bool? hovered,
  bool? focused,
  bool? touched,
  bool? dirty,
  bool? empty,
  bool? full,
  bool? edited,
  bool? submitted,
  FetchStatus? fetch,
}) {
  return InputStatus(
    hovered: hovered ?? this.hovered,
    focused: focused ?? this.focused,
    touched: touched ?? this.touched,
    dirty: dirty ?? this.dirty,
    empty: empty ?? this.empty,
    full: full ?? this.full,
    edited: edited ?? this.edited,
    submitted: submitted ?? this.submitted,
    fetch: fetch ?? this.fetch,
  );
}