holdsAlternative<T> method

  1. @override
bool holdsAlternative<T>()
override

Checks if the variant currently holds the specified type alternative.

Implementation

@override
bool holdsAlternative<T>() => _typeOf<T>() == _typeOf<T1>();