isInstance abstract method
Checks if an object is an instance of this class.
Parameters:
obj
: The object to check
Returns:
true
if obj is non-null and an instance of Tfalse
otherwise
Example:
Class.forType<String>().isInstance('hello'); // true
Implementation
bool isInstance(Object? obj);