throwsAssertionError top-level property

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 ComponentTester.pumpComponent results in an AssertionError, see TestComponentsFlutterBinding.takeException.

See also:

Implementation

final Matcher throwsAssertionError = throwsA(isAssertionError);