instanceOf<E> method
Checks if the given this is an instance of E type.
Implementation
bool instanceOf<E>() => this is E || this == E;
Checks if the given this is an instance of E type.
bool instanceOf<E>() => this is E || this == E;