healthDoubtItemNotification method Null safety
- ActionType actionType
Implementation
bool healthDoubtItemNotification(ActionType actionType) {
Map<String, dynamic>? data = getJson(PrefsConstants.PREFS_KEY_HEALTH_DOUBT_NOTIFICATION);
List<dynamic> items = data!["items"] as List<dynamic>;
Map<String, dynamic>? item = items.firstWhere((item) => item["action"] == actionType.code);
return item?["on"] == true;
}