statusFor method

GetStatus? statusFor(
  1. dynamic key
)

Returns the GetStatus by key

Implementation

GetStatus? statusFor(key) => busyFor(key)
    ? GetStatus.busy
    : resultFor(key)?.status ?? (hasErrorFor(key) ? GetStatus.failed : null);