StdNotificationsDataSource class

Standard implementation of NotificationsDataSource.

Inheritance

Constructors

StdNotificationsDataSource(ApiService apiService, UserToken token)
Standard implementation of NotificationsDataSource.

Properties

apiService → ApiService
The ApiService to use for fetching and updating notifications.
final
hashCode → int
The hash code for this object.
read-onlyinherited
runtimeType → Type
A representation of the runtime type of the object.
read-onlyinherited
token → UserToken
The UserToken needed to use the apiService.
final

Methods

fetchNotifications() → Future<List<Notification>>
Fetches all notifications for the currently logged in user.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited
updateNotification(Notification notification) → Future<Notification>
Updates a notification by posting the updated notification to the server.
override

Operators

operator ==(Object other) → bool
The equality operator.
inherited