DVNotificationsService class
- Available extensions
Constructors
- DVNotificationsService()
-
const
Properties
-
availableChannels
→ Set<
DVNotificationChannel> -
The channels this process could deliver on right now.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- mail → DVNotificationMail
-
no setter
- mailSender → DVMailAddress?
-
The configured
From, or null when useMailSender was never called.no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
register(
DVNotificationProvider provider) → void -
resetRouting(
) → void - Forgets the routing configuration. For tests.
-
send(
String recipient, DVNotificationMessage message, {DVNotificationProviderKind? provider, DVNotificationRoutes? routes, DVNotificationPreferences? preferences, DateTime? now}) → Future< DVNotificationDelivery> -
Sends
messagetorecipienton the channels it asks for. -
sendTemplate(
String recipient, DVNotificationTemplate template, {LocaleTag? locale, Map< String, String> args = const <String, String>{}, Map<String, String> data = const <String, String>{}, List<DVNotificationChannel> channels = const <DVNotificationChannel>[DVNotificationChannel.inApp]}) → Future<DVNotificationDelivery> -
Available on DVNotificationsService, provided by the DVNotificationTemplating extension
Sendstemplatetorecipient, rendered inlocale(the current one when null) withargsinterpolated. Strict: a missing translation is an error rather than a notification whose title is a key name. Returns what each channel did, the same as DVNotificationsService.send. A void return could not tell a caller whether the translated message reached anybody, which for a notification is the only question. -
toString(
) → String -
A string representation of this object.
inherited
-
useMailSender(
DVMailAddress sender) → void -
The
Fromon mail sent through the email channel. -
usePreferences(
DVNotificationPreferenceResolver resolver) → void - What each recipient has asked to receive.
-
useRoutes(
DVNotificationRouteResolver resolver) → void - Where each recipient can be reached.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited