isSharedAdapter static method
Whether controller is the process-shared adapter resolved from the
(deprecated) global slots for the current platform — i.e. not a per-view
instance that the view created and therefore owns.
NutrientDocumentView uses this to decide adapter ownership: a controller
it built from a factory (or the platform default) is disposed with the
view, whereas the shared global adapter is left alone. Exposed (rather than
reading the deprecated currentAdapter) so the SDK's own views don't trip
the deprecation.
Implementation
static bool isSharedAdapter(NutrientController controller) =>
identical(controller, _adapterSlotForCurrentPlatform());