isNullableType<T> function
Implementation
bool isNullableType<T>() {
try {
// ignore: unused_local_variable
T val = null as T;
} catch (e) {
return false;
}
return true;
}
bool isNullableType<T>() {
try {
// ignore: unused_local_variable
T val = null as T;
} catch (e) {
return false;
}
return true;
}