throwsStateError top-level constant Null safety

Matcher const throwsStateError

A matcher for functions that throw StateError.

See throwsA for objects that this can be matched against.

Implementation

const Matcher throwsStateError = Throws(isStateError);