isConnected method

  1. @override
Future<bool> isConnected()
override

Implementation

@override
Future<bool> isConnected() async {
  try {
    return await testInternetConnectivity(
      timeout: const Duration(seconds: 5),
    );
  } catch (e) {
    SyncUtils.debugLog('Erro ao verificar conectividade: $e',
        tag: 'SyncConnectivityService');
    return false;
  }
}