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.
 
 
 
 
 
 

30 lines
522 B

class ExamineInstance{
factory ExamineInstance() => _getInstance();
static ExamineInstance get instance => _getInstance();
static ExamineInstance? _instance;
late bool _isExamine;
bool get isExamine => _isExamine;
set isExamine(bool value) {
this._isExamine = value;
}
ExamineInstance._internal(){
//单例初始化
_isExamine = true;
}
static ExamineInstance _getInstance(){
if (_instance == null) {
_instance = ExamineInstance._internal();
}
return _instance!;
}
}