instance property
ImagePickerPlatform
instance
The default instance of ImagePickerPlatform to use.
Defaults to MethodChannelImagePicker
.
Implementation
static ImagePickerPlatform get instance => _instance;
Platform-specific plugins should set this with their own platform-specific class that extends ImagePickerPlatform when they register themselves.
Implementation
// TODO(amirh): Extract common platform interface logic.
// https://github.com/flutter/flutter/issues/43368
static set instance(ImagePickerPlatform instance) {
PlatformInterface.verifyToken(instance, _token);
_instance = instance;
}