throws top-level constant

  1. @Deprecated('Will be removed in 0.13.0')
Matcher const throws

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();