isOfExactGenericTypeAs method
Checks if some object in the format "Obj1
Examples: expect(
Implementation
bool isOfExactGenericTypeAs(Object? obj) {
var runtimeTypeStr = obj.runtimeType.toString();
var pos = runtimeTypeStr.lastIndexOf('<');
// ignore: no_runtimetype_tostring
return runtimeType.toString().endsWith('<${runtimeTypeStr.substring(pos + 1)}');
}