throwsAssertionError top-level property Null safety

Matcher throwsAssertionError
final

A matcher for functions that throw AssertionError.

This is equivalent to throwsA(isA<AssertionError>()).

If you are trying to test whether a call to WidgetTester.pumpWidget results in an AssertionError, see TestWidgetsFlutterBinding.takeException.

See also:

Implementation

final Matcher throwsAssertionError = throwsA(isAssertionError);