isSubclassOf abstract method
Determines whether this class is a subclass of other.
This checks the inheritance hierarchy to see if this class
directly or transitively extends the given other class.
Parameters
other: The class to test against
Returns
trueif this class extends or derives fromotherfalseotherwise
Example
Class<Admin>().isSubclassOf(Class<User>()); // true
Implementation
bool isSubclassOf(Class other, [Set<String>? visited]);