updateStatus method

void updateStatus({
  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

void updateStatus({
  bool? hovered,
  bool? focused,
  bool? touched,
  bool? dirty,
  bool? empty,
  bool? full,
  bool? edited,
  bool? submitted,
  FetchStatus? fetch,
}) {
  status.value = status.value.copyWith(
    hovered: hovered,
    focused: focused,
    touched: touched,
    dirty: dirty,
    empty: empty ?? isEmpty,
    full: full ?? isFull,
    edited: edited,
    submitted: submitted,
    fetch: fetch,
  );
}