isNullable<T> function

bool isNullable<T>()

Checks if the types T is nullable (equal T?)

Implementation

bool isNullable<T>() => typeOf<T?>() == typeOf<T>();