instance property

MediapipePlatform get instance

The default instance of MediapipePlatform to use.

Defaults to MethodChannelMediapipe.

Implementation

static MediapipePlatform get instance => _instance;
set instance (MediapipePlatform instance)

Platform-specific implementations should set this with their own platform-specific class that extends MediapipePlatform when they register themselves.

Implementation

static set instance(MediapipePlatform instance) {
  PlatformInterface.verifyToken(instance, _token);
  _instance = instance;
}