check<I extends Info, E extends Entry<I>, T extends Store<I, E>> function Null safety

void check<I extends Info, E extends Entry<I>, T extends Store<I, E>>(
  1. TestContext<I, E, T> ctx,
  2. dynamic actual,
  3. dynamic matcher,
  4. String reason
)

Assert that actual matches matcher in a specific test ctx.

  • ctx: The test context
  • actual: The current value
  • matcher: Can be a value in which case it will be wrapped in an equals matcher
  • reason: If provided it is appended to the reason generated by the matcher

Implementation

void check<I extends Info, E extends Entry<I>, T extends Store<I, E>>(
    TestContext<I, E, T> ctx, dynamic actual, dynamic matcher, String reason) {
  expect(actual, matcher, reason: 'Reason: $reason');
}