throws top-level constant

const throws = const Throws()
@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

const Matcher throws = Throws()