PhoneContent class final

A phone number to call (tel:, facetime:, facetime-audio:).

Inheritance

Constructors

PhoneContent(String number, {CallType type = CallType.voice})
Creates phone content.
const

Properties

hashCode → int
The hash code for this object.
no setteroverride
number → String
The number as written in the barcode; for FaceTime, also an e-mail address.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
type → CallType
Phone or FaceTime.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toPayload() → String
tel:+12125551234 (facetime:, facetime-audio:). Visual separators (spaces, -, ., brackets) are removed; +, digits, * and # are kept.
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