Skip to content

Commit

Permalink
修改 app status observe isolate bug
Browse files Browse the repository at this point in the history
  • Loading branch information
bladeofgod committed Nov 5, 2020
1 parent 10981e7 commit 81461b3
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,14 @@ class AppStatusModel {
factory AppStatusModel() => _getInstance();
static AppStatusModel _getInstance(){
if(_singleton == null){
_singleton = AppStatusModel();
_singleton = AppStatusModel._();
}
return _singleton;
}

AppStatusModel._();


///网络是否可用
NetStatus netStatus = NetStatus.Enable;
setNetStatus(NetStatus status){
Expand Down

0 comments on commit 81461b3

Please sign in to comment.