isConfirmed top-level property

ContextAwareMatcher isConfirmed
read / write

Asserts that for a key x, the context contains an identical item x_confirmed.

Implementation

ContextAwareMatcher isConfirmed = predicateWithContext(
  (item, key, context, matchState) {
    return equals(item).matches(context['${key}_confirmed'], matchState);
  },
  'is confirmed',
)