unbridgedNativeClause method
Implementation
String unbridgedNativeClause(Object? receiver) {
if (receiver == null) return '';
if (receiver is RuntimeValue ||
receiver is RuntimeType ||
receiver is Callable ||
receiver is InterpretedRecord) {
return '';
}
try {
globalEnvironment.toBridgedInstance(receiver);
return '';
} catch (e) {
if (e is D4rtException) e.revoke();
final type = receiver.runtimeType;
return ' No bridge claims this type: no bridged class is registered for the '
'native type $type, so the object was never bridged and has no '
'members at all — the missing member is a consequence. Register a '
"bridge for $type, or add '$type' to an existing bridge's "
'`nativeNames`.';
}
}