debugOverridePlatformViewRegistry function

void debugOverridePlatformViewRegistry(
  1. PlatformViewRegistry? value
)

Overrides the platform view registry.

If value is null, resets the value of platformViewRegistry back to real implementation.

This is intended for tests only.

Implementation

void debugOverridePlatformViewRegistry(PlatformViewRegistry? value) {
  _platformViewRegistryOverride = value;
}