ap_common_core library

Classes

AnalyticsConstants
AnalyticsUtil
Announcement
AnnouncementData
AnnouncementLoginData
ApConstants
ApiError<T>
ApiFailure<T>
ApiResult<T>
ApiSuccess<T>
ApSupportLanguageConstants
Course
CourseData
CourseNotify
CourseNotifyData
CrashlyticsUtil
CustomCourseData
Stores user-created custom courses separately from API data.
Data
DataEmpty<T>
Data loaded successfully but was empty.
DataError<T>
An error occurred while loading data.
DataLoaded<T>
Data was loaded successfully.
DataLoading<T>
Data is currently being loaded.
DataState<T>
A sealed class representing the state of asynchronous data loading.
Detail
GeneralResponse
ImgurUploadData
ImgurUploadResponse
Info
Location
Notifications
NotificationsData
PhoneModel
PreferenceUtil
PrivateCookieManager
Don't use this class in Browser environment
Score
ScoreData
SectionTime
Semester
SemesterData
TimeCode
TimeCodeConfig
UserInfo
VersionInfo

Extensions

AnnouncementDataPatterns on AnnouncementData
Adds pattern-matching-related methods to AnnouncementData.
AnnouncementLoginDataPatterns on AnnouncementLoginData
Adds pattern-matching-related methods to AnnouncementLoginData.
AnnouncementPatterns on Announcement
Adds pattern-matching-related methods to Announcement.
ApiResultToDataState on ApiResult<T>
Extension to convert ApiResult into DataState for UI state management.
ApSupportLanguageExtension on ApSupportLanguage
CourseDataPatterns on CourseData
Adds pattern-matching-related methods to CourseData.
CourseNotifyDataPatterns on CourseNotifyData
Adds pattern-matching-related methods to CourseNotifyData.
CourseNotifyPatterns on CourseNotify
Adds pattern-matching-related methods to CourseNotify.
CoursePatterns on Course
Adds pattern-matching-related methods to Course.
CustomCourseExtension on Course
Extension to check whether a Course is user-created.
DataPatterns on Data
Adds pattern-matching-related methods to Data.
DetailPatterns on Detail
Adds pattern-matching-related methods to Detail.
GeneralResponsePatterns on GeneralResponse
Adds pattern-matching-related methods to GeneralResponse.
ImgurUploadDataPatterns on ImgurUploadData
Adds pattern-matching-related methods to ImgurUploadData.
ImgurUploadResponsePatterns on ImgurUploadResponse
Adds pattern-matching-related methods to ImgurUploadResponse.
InfoPatterns on Info
Adds pattern-matching-related methods to Info.
LocationPatterns on Location
Adds pattern-matching-related methods to Location.
NotificationsDataPatterns on NotificationsData
Adds pattern-matching-related methods to NotificationsData.
NotificationsPatterns on Notifications
Adds pattern-matching-related methods to Notifications.
PhoneModelPatterns on PhoneModel
Adds pattern-matching-related methods to PhoneModel.
ScoreDataPatterns on ScoreData
Adds pattern-matching-related methods to ScoreData.
ScorePatterns on Score
Adds pattern-matching-related methods to Score.
SectionTimePatterns on SectionTime
Adds pattern-matching-related methods to SectionTime.
SemesterDataPatterns on SemesterData
Adds pattern-matching-related methods to SemesterData.
SemesterPatterns on Semester
Adds pattern-matching-related methods to Semester.
TimeCodeConfigPatterns on TimeCodeConfig
Adds pattern-matching-related methods to TimeCodeConfig.
TimeCodeExtension on List<TimeCode>
TimeCodePatterns on TimeCode
Adds pattern-matching-related methods to TimeCode.
UserInfoPatterns on UserInfo
Adds pattern-matching-related methods to UserInfo.
VersionInfoPatterns on VersionInfo
Adds pattern-matching-related methods to VersionInfo.

Functions

registerApCommonCore({required PreferenceUtil preference}) → void
registerApCommonService({AnalyticsUtil analytics = const MockAnalyticsUtil(), CrashlyticsUtil crashlytics = const MockCrashlyticsUtil()}) → void