load static method

CourseData? load(
  1. String tag
)

Implementation

static CourseData? load(String tag) {
  final String rawString = Preferences.getString(
    '${ApConstants.packageName}'
        '.course_data_$tag',
    '',
  );
  if (rawString == '') {
    return null;
  } else {
    return CourseData.fromRawJson(rawString);
  }
}