isAssertionError top-level property Null safety
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>();