nullableOrNull static method
Assumes unknown
is a TFieldRecord or Field or similar and
tries to get the nullable property, or returns null
.
Implementation
static bool? nullableOrNull(dynamic unknown) {
try {
return unknown.nullable as bool?;
} catch (_) {
try {
return unknown.$3 as bool?;
} catch (_) {
return null;
}
}
}