instance property

ImagePicker2Platform get instance

The default instance of ImagePicker2Platform to use.

Defaults to MethodChannelImagePicker2.

Implementation

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

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

Implementation

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