SmsContent class final

A text message draft (sms:, smsto:, mms:, mmsto:).

Inheritance

Constructors

SmsContent({required String number, String? message})
Creates SMS content.
const

Properties

hashCode → int
The hash code for this object.
no setteroverride
message → String?
Message text, if given.
final
number → String
Recipient number. Several recipients are separated by commas, as in sms:.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
uri → Uri?
sms:number?body=message (RFC 5724), which messaging apps open with the message filled in; toPayload is the SMSTO: form camera apps read.
no setteroverride

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toPayload() → String
SMSTO:number:message, the form both iOS and Android camera apps open. Numbers lose their visual separators, as in PhoneContent.
override
toString() → String
A string representation of this object.
override
validate() → List<ContentIssue>
The problems that keep toPayload from building this value, such as an empty network name or a latitude out of range. Empty when the value can be built. For forms: show each ContentIssue.message next to its ContentIssue.field.
override

Operators

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