instance property
NodeFlutterPlatform
get
instance
The default instance of NodeFlutterPlatform to use.
Defaults to MethodChannelNodeFlutter, but can be overridden by platform-specific implementations.
Implementation
static NodeFlutterPlatform get instance => _instance;
set
instance
(NodeFlutterPlatform instance)
Sets the platform-specific implementation for NodeFlutterPlatform.
The instance must pass token verification using PlatformInterface.verifyToken.
Implementation
static set instance(NodeFlutterPlatform instance) {
PlatformInterface.verifyToken(instance, _token);
_instance = instance;
}