SmsCompletion enum
What counts as completion for a send.
Values
- sent → const SmsCompletion
-
Complete once the radio confirms the message was sent.
This is the default, and the one you want for a retry loop: a failure here means the message never left the device.
const SmsCompletion('sent') - delivered → const SmsCompletion
-
Complete once the carrier confirms the message reached the recipient.
Delivery reports are optional on the network side. Plenty of carriers, and most emulators, never emit one — in that case the send fails with
TelephonySmsErrorCode.sendTimeouteven though the message went out. Only opt in when your carrier is known to support them, and keep the timeout generous.const SmsCompletion('delivered')
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- name → String
-
Available on Enum, provided by the EnumName extension
The name of the enum value.no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- value → String
-
The raw string used on the method channel.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
-
values
→ const List<
SmsCompletion> - A constant List of the values in this enum, in order of their declaration.