instance property
MetronomePlatform
get
instance
The default instance of MetronomePlatform to use.
Defaults to MethodChannelMetronome.
Implementation
static MetronomePlatform get instance => _instance;
set
instance
(MetronomePlatform instance)
Platform-specific implementations should set this with their own platform-specific class that extends MetronomePlatform when they register themselves.
Implementation
static set instance(MetronomePlatform instance) {
PlatformInterface.verifyToken(instance, _token);
_instance = instance;
}