instance property

FlutterMidiProPlatform get instance

The default instance of FlutterMidiProPlatform to use.

Defaults to MethodChannelFlutterMidiPro.

Implementation

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

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

Implementation

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