instanceOf<E> method

bool instanceOf<E>()

Checks if the given this is an instance of E type.

Implementation

bool instanceOf<E>() => this is E || this == E;