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