getNativeInstance method
Low-level, stringly-typed lookup of a registered native instance.
Internal plumbing behind the typed native* accessors on the platform
adapters — those are the supported, type-safe way to reach native objects.
This returns Object? keyed by a magic string and requires a manual cast,
so prefer nativeDocument / nativePdfFragment / nativeInstance / etc.
Returns null if the identifier isn't registered or the platform doesn't
support it.
Implementation
Object? getNativeInstance(String identifier) {
return NativeInstanceRegistry.get(viewId, identifier);
}