nullableOrNull static method
Assumes unknown
is a TFieldRecord or FieldModel 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;
}
}
}