instance property

MotionPlatform instance

The default instance of MotionPlatform to use.

Defaults to NativeMotion.

Implementation

static MotionPlatform get instance => _instance;
void instance=(MotionPlatform instance)

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

Implementation

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