instance property

Gets the singleton instance of the discovery manager.

Returns the appropriate platform-specific implementation (Android or iOS) based on the current platform.

Implementation

static GoogleCastDiscoveryManagerPlatformInterface get instance {
  return _instance ??= Platform.isAndroid
      ? GoogleCastDiscoveryManagerMethodChannelAndroid()
      : GoogleCastDiscoveryManagerMethodChannelIOS();
}