in short, throwsA(anything) does not suffice for me while unit testing in dart. How to I test for a specific error message or type?
throwsA(anything)
Her
First import correct package 'package:matcher/matcher.dart';
expect(() => yourOperation.yourMethod(), throwsA(const TypeMatcher()));