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