instance property
PdLogPlatform
get
instance
当前使用的默认实现。
默认是基于 MethodChannel 的实现 MethodChannelPdLog。
Implementation
static PdLogPlatform get instance => _instance;
set
instance
(PdLogPlatform instance)
用于切换默认实现,各平台在注册时设置自己的实现。
Implementation
static set instance(PdLogPlatform instance) {
PlatformInterface.verifyToken(instance, _token);
_instance = instance;
}