isStateWith function

Matcher isStateWith({
  1. bool? isLoading,
  2. Object? key,
  3. Object? value,
  4. Object? error,
  5. Source? source,
})

Matcher that matches a ResourceState or StateSnapshot whose properties match all of the provided matchers.

Implementation

Matcher isStateWith({
  bool? isLoading,
  Object? key,
  Object? value,
  Object? error,
  Source? source,
}) =>
    _ResourceStateMatcher(isLoading, key, value, error, source, false);