CourseNotifyData.load constructor
CourseNotifyData.load(
- String? tag
Implementation
factory CourseNotifyData.load(String? tag) {
final String rawString = Preferences.getString(
'${ApConstants.packageName}.'
'course_notify_data_$tag',
'',
);
if (rawString == '') {
return CourseNotifyData(data: <CourseNotify>[])..tag = tag;
} else {
return CourseNotifyData.fromRawJson(rawString)..tag = tag;
}
}