instance property

FlexicapturePlatform get instance

The default instance of FlexicapturePlatform to use.

Defaults to MethodChannelFlexicapture.

Implementation

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

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

Implementation

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