throwsArgumentError = const Throws(isArgumentError)

A matcher for functions that throw ArgumentError.