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