instance property

PhotosNativePlatform get instance

The default instance of PhotosNativePlatform to use.

Defaults to MethodChannelPhotosNative.

Implementation

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

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

Implementation

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