instance property
DatabasePlatform
instance
The current default DatabasePlatform instance.
It will always default to MethodChannelDatabase
if no other implementation was provided.
Implementation
static DatabasePlatform get instance {
return _instance ??= MethodChannelDatabase();
}
Implementation
static set instance(DatabasePlatform instance) {
PlatformInterface.verify(instance, _token);
_instance = instance;
}