checkConnectivity method

Future<void> checkConnectivity()

重新检查是否链接网络

Implementation

Future<void> checkConnectivity() async {
  final connectivityResult = await connectivity.checkConnectivity();
  if (_currentStatus == connectivityResult) return;
  _currentStatus = connectivityResult;
  log('Connectivity Status $_currentStatus', crossLine: false);
  _callListenerList();
}