isNullable<T> function

bool isNullable<T>()

Returns true if T was declared as a nullable type (e.g. String?)

Implementation

bool isNullable<T>() => null is T;