AnnouncementHelper class Null safety

Constructors

AnnouncementHelper()

Properties

appleBundleId String?
Apple bundle identifier for apple sign in
read / write
code String?
read / write
dio Dio
read / write
fcmToken String?
firebase cloud message token
read / write
hashCode int
The hash code for this object. [...]
read-only, inherited
loginType AnnouncementLoginType
read / write
organization String?
organization tag name
read / write
password String?
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
username String?
read / write

Methods

addAnnouncement({required Announcement data, GeneralCallback<Response>? callback, String? languageCode}) Future<Response?>
addApplication({required Announcement data, GeneralCallback<Response>? callback, String? languageCode}) Future<Response?>
appleLogin({required String idToken, GeneralCallback<AnnouncementLoginData>? callback}) Future<AnnouncementLoginData?>
approveApplication({required String? applicationId, String? reviewDescription, GeneralCallback<Response>? callback}) Future<Response?>
clearSetting() → void
deleteAnnouncement({required Announcement data, GeneralCallback<Response>? callback}) Future<Response?>
getAllAnnouncements({GeneralCallback<List<Announcement>?>? callback}) Future<List<Announcement>?>
getAnnouncements({GeneralCallback<List<Announcement>?>? callback, String? locale, List<String>? tags, bool sortAndRandom = true}) Future<List<Announcement>?>
getApplications({String? locale, GeneralCallback<List<Announcement>?>? callback}) Future<List<Announcement>?>
googleLogin({required String? idToken, GeneralCallback<AnnouncementLoginData>? callback}) Future<AnnouncementLoginData?>
handleCrudError(DioError dioError, GeneralCallback<Response> callback) → void
login({required String? username, required String? password, GeneralCallback<AnnouncementLoginData>? callback}) Future<AnnouncementLoginData?>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
rejectApplication({required String? applicationId, String? reviewDescription, GeneralCallback<Response>? callback}) Future<Response?>
reLogin(GeneralCallback<GeneralResponse> callback) Future<bool>
removeApplication({required String applicationId, GeneralCallback<Response>? callback}) Future<Response?>
setAuthorization(String? key) → void
setLocale(Locale locale) → void
toString() String
A string representation of this object. [...]
inherited
updateAnnouncement({required Announcement data, GeneralCallback<Response>? callback}) Future<Response?>
updateApplication({required Announcement data, GeneralCallback<Response>? callback}) Future<Response?>

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited

Static Properties

host String
read / write
instance AnnouncementHelper
read-only
tag String
read / write

Static Methods

reInstance({String? host, String? tag}) → void

Constants

notFoundData → const int
404
notPermission → const int
403
tokenExpire → const int
401
useDataError → const int
1401