isWidgetResolveFallbackStatus function

bool isWidgetResolveFallbackStatus(
  1. int status
)

Whether a failed resolve should be retried through the plain GET of fallbackPublishedKey. Only 5xx qualifies: a 4xx means the request itself is wrong, and a fallback widget would hide that.

Implementation

bool isWidgetResolveFallbackStatus(int status) => status >= 500;