instance property

EyeTrackingPlatform get instance

The default instance of EyeTrackingPlatform to use.

Defaults to MethodChannelEyeTracking.

Implementation

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

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

Implementation

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