instance property

VisprofilerPlatform get instance

The default instance of VisprofilerPlatform to use.

Defaults to MethodChannelVisprofiler.

Implementation

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

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

Implementation

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