isStatusInList method

bool isStatusInList(
  1. List<int> statusList
)

Returns true if this status is in statusList.

Implementation

bool isStatusInList(List<int> statusList) {
  return (statusList.firstWhereOrNull((id) => id == status) != null);
}