Untitled

 avatar
unknown
dart
3 years ago
463 B
3
Indexable
 if (Constant.connectionCheck) {
                  DataConnectionChecker().hasConnection.then((value) {
                    if (value) {
                      //todo
                    } else {
                      Constant.connectionCheck = false;
                      setState(() {});
                    }
                  });
                } else {
                  Constant.connectionCheck = false;
                  setState(() {});
                }
Editor is loading...