throwsArgumentError top-level constant Null safety

Matcher const throwsArgumentError

A matcher for functions that throw ArgumentError.

See throwsA for objects that this can be matched against.

Implementation

const Matcher throwsArgumentError = Throws(isArgumentError);