You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
492 B
31 lines
492 B
2 years ago
|
|
||
|
class ExamineInstance{
|
||
|
|
||
|
factory ExamineInstance() => _getInstance();
|
||
|
|
||
|
static ExamineInstance get instance => _getInstance();
|
||
|
|
||
|
static ExamineInstance _instance;
|
||
|
|
||
|
bool _isExamine = true;
|
||
|
|
||
|
bool get isExamine =>
|
||
|
_isExamine;
|
||
|
|
||
|
set isExamine(bool value) {
|
||
|
this._isExamine = value;
|
||
|
}
|
||
|
|
||
|
ExamineInstance._internal(){
|
||
|
//单例初始化
|
||
|
|
||
|
}
|
||
|
|
||
|
static ExamineInstance _getInstance(){
|
||
|
if(_instance == null){
|
||
|
_instance = ExamineInstance._internal();
|
||
|
}
|
||
|
return _instance;
|
||
|
}
|
||
|
|
||
|
}
|