isExact<TOther> method

bool isExact<TOther>()

Returns true if TOther is exactly T.

Implementation

bool isExact<TOther>() => T == TOther;