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