isSameTypeOrNullable<T1, T2> function

bool isSameTypeOrNullable<T1, T2>()

Check if two type parameters are the same type or nullable of the same type.

Implementation

bool isSameTypeOrNullable<T1, T2>() =>
    isSameType<T1, T2>() || isSameType<T1, T2?>();