isNullable<T> function
Returns true if T
was declared as a nullable type (e.g. String?)
Implementation
bool isNullable<T>() => null is T;
Returns true if T
was declared as a nullable type (e.g. String?)
bool isNullable<T>() => null is T;