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