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