hasView static method

bool hasView(
  1. int viewId
)

Whether any native instance is still registered for viewId.

Used to tell whether a view is still live: a view registers its native instances on creation and unregisters them (via NutrientViewHandle.dispose) when it is torn down, so a true result means the view is still around.

Implementation

static bool hasView(int viewId) => _instances.containsKey(viewId);