TwilioSmsProvider class

Twilio SMS.

The recipient is the destination number in E.164 form (+15551234567). DVNotificationMessage carries a title and a body; SMS has no title, so a non-empty title is prefixed on its own line rather than dropped.

Implemented types

Constructors

TwilioSmsProvider({required String accountSid, required String authToken, String? fromNumber, String? messagingServiceSid, Uri? baseUrl, DVHttpSend transport = dvSendHttpRequest})

Properties

accountSid → String
final
authToken → String
final
baseUrl → Uri
final
fromNumber → String?
The sending number, in E.164 form.
final
hashCode → int
The hash code for this object.
no setterinherited
kind → DVNotificationProviderKind
no setteroverride
messagingServiceSid → String?
A Twilio Messaging Service, used instead of a single sending number.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
transport → DVHttpSend
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
send(String recipient, DVNotificationMessage message) → Future<void>
override
toString() → String
A string representation of this object.
inherited

Operators

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

Static Methods

smsBody(DVNotificationMessage message) → String
SMS has no subject line, so a title becomes the first line.