getBridgedEnumValue method
Gets the BridgedEnumValue for a native enum value
Implementation
BridgedEnumValue? getBridgedEnumValue(Object value) {
// Fast-path: bridged enums only ever wrap native Enum instances. Bailing
// out early for non-enums avoids walking the entire enum registry (and,
// since Cluster-D added a prefix-import recursion, prevents potential
// cycles through `_prefixedImports` for non-enum values that callers in
// `runtime_types.dart` may probe with).
if (value is! Enum) return null;
return _getBridgedEnumValueImpl(value, <Environment>{});
}