throws top-level constant Null safety

Matcher const throws
Deprecated('Will be removed in 0.13.0')">@Deprecated('Will be removed in 0.13.0')

This function is deprecated.

Use throwsA instead. We strongly recommend that you add assertions about at least the type of the error, but you can write throwsA(anything) to mimic the behavior of this matcher.

Implementation

@Deprecated('Will be removed in 0.13.0')
const Matcher throws = Throws();