instance property
CarpMovesenseFlutterPlatform
get
instance
The default instance of CarpMovesenseFlutterPlatform to use.
Defaults to the Pigeon-backed host API implementation.
Implementation
static CarpMovesenseFlutterPlatform get instance {
return _instance ??= PigeonCarpMovesenseFlutter();
}
set
instance
(CarpMovesenseFlutterPlatform instance)
Platform-specific implementations should set this with their own platform-specific class that extends CarpMovesenseFlutterPlatform when they register themselves.
Implementation
static set instance(CarpMovesenseFlutterPlatform instance) {
PlatformInterface.verifyToken(instance, _token);
_instance = instance;
}