isAssertionError top-level property
final
A matcher for AssertionError.
This is equivalent to isInstanceOf<AssertionError>()
.
See also:
- throwsAssertionError, to test if a function throws any AssertionError.
- isFlutterError, to test if any object is a FlutterError.
Implementation
final TypeMatcher<AssertionError> isAssertionError = isA<AssertionError>();