Checks if instance is exactly the specified class.
name
bool - true if exact match
bool
bool hasExactClass(String name) => className == name;