throwsException top-level constant

const throwsException = const Throws(isException)

A matcher for functions that throw Exception.

Implementation

const Matcher throwsException =
    // ignore: deprecated_member_use
    Throws(isException)