Untitled

mail@pastecode.io avatar
unknown
dart
2 years ago
463 B
1
Indexable
Never
 if (Constant.connectionCheck) {
                  DataConnectionChecker().hasConnection.then((value) {
                    if (value) {
                      //todo
                    } else {
                      Constant.connectionCheck = false;
                      setState(() {});
                    }
                  });
                } else {
                  Constant.connectionCheck = false;
                  setState(() {});
                }