instance property

RecordPlatform instance

The default instance of RecordPlatform to use.

Defaults to MethodChannelRecord.

Implementation

static RecordPlatform get instance => _instance;
void instance=(RecordPlatform instance)

Platform-specific plugins should set this to an instance of their own platform-specific class that extends RecordPlatform when they register themselves.

Implementation

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