instance property

The default instance of SizeRecommenderPlatform to use.

Defaults to MethodChannelSizeRecommender.

Implementation

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

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

Implementation

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