isOfExactGenericType method

bool isOfExactGenericType(
  1. Type type
)

Checks if some object in the format "Obj

Examples: expect(

Implementation

bool isOfExactGenericType(Type type) {
  // ignore: no_runtimetype_tostring
  return runtimeType.toString().endsWith('<$type>');
}