typeMatches<T> function

bool typeMatches<T>(
  1. Type t
)

Implementation

bool typeMatches<T>(Type t) => t == T || t == getNullishType<T>();