Checks if the variant currently holds the specified type alternative.
@override bool holdsAlternative<T>() => _typeOf<T>() == _typeOf<T1>();