isUseCaseTestStreamError function
Matcher
isUseCaseTestStreamError({})
Matches a stream error by the fields supplied by the test.
Implementation
test.Matcher isUseCaseTestStreamError({
final Object? error = _unspecified,
final Object? stackTrace = _unspecified,
}) {
test.TypeMatcher<UseCaseTestStreamError> matcher = test
.isA<UseCaseTestStreamError>();
if (!identical(error, _unspecified)) {
matcher = matcher.having(
(final UseCaseTestStreamError value) => value.error,
'error',
error,
);
}
if (!identical(stackTrace, _unspecified)) {
matcher = matcher.having(
(final UseCaseTestStreamError value) => value.stackTrace,
'stackTrace',
stackTrace,
);
}
return matcher;
}