check<I extends Info, E extends Entry<I> , T extends Store<I, E> > function
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,
Assert that actual
matches matcher
in a specific test ctx
.
ctx
: The test contextactual
: The current valuematcher
: Can be a value in which case it will be wrapped in an equals matcherreason
: 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');
}