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