throwsFlutterError top-level property

Matcher throwsFlutterError
final

A matcher for functions that throw FlutterError.

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

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

See also:

Implementation

final Matcher throwsFlutterError = throwsA(isFlutterError);