instance property
MsSQLConnectionPlatform
get
instance
The default instance of MsSQLConnectionPlatform to use.
This is a singleton, and the instance will be set based on the platform.
Implementation
static MsSQLConnectionPlatform get instance {
if (_instance == null) {
if (Platform.isWindows) {
_instance = MethodChannelMsSQLConnectionWindows();
} else {
_instance = MethodChannelMsSQLConnection();
}
}
return _instance!;
}
set
instance
(MsSQLConnectionPlatform instance)
Platform-specific implementations should set this with their own platform-specific class that extends MsSQLConnectionPlatform when they register themselves.
Implementation
static set instance(MsSQLConnectionPlatform instance) {
PlatformInterface.verifyToken(instance, _token);
_instance = instance;
}