check<T extends CacheStore> function Null safety

void check<T extends CacheStore>(
  1. TestContext<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


void check<T extends CacheStore>(
    TestContext<T> ctx, dynamic actual, dynamic matcher, String reason) {
  expect(actual, matcher, reason: 'Reason: $reason');