getGoogleHealthConnectSyncDate method

Future<DateTime> getGoogleHealthConnectSyncDate()

Implementation

Future<DateTime> getGoogleHealthConnectSyncDate() async {
  final googleHealthConnectSyncDate =
      await storage.read(key: _googleHealthConnectSyncDate) ?? '';
  try {
    return DateTime.parse(googleHealthConnectSyncDate.toString());
  } catch (e) {
    return getGoogleHealthConnectAccessGrantedDate();
  }
}