foreignKeyOrNull static method
Assumes unknown
is a TFieldRecord or FieldModel and tries to get
the foreignKey
property, or returns null
.
Implementation
static bool? foreignKeyOrNull(dynamic unknown) {
try {
return unknown.foreignKey as bool?;
} catch (_) {
try {
return unknown.$6 as bool?;
} catch (_) {
return null;
}
}
}