MessageInput class
Constructors
-
MessageInput({String? from, List<
String> media = const [], String? text, String? to}) - Returns a new MessageInput instance.
Properties
- from ↔ String?
-
From is the number to send FROM, in E.164. It must be one this org holds and it must be sms-capable.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setteroverride
-
media
↔ List<
String> -
Media are URLs to attach. A message with any is an MMS to the carrier — the distinction is the carrier's to make, not something the caller declares.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- text ↔ String?
-
Text is the message body. It may be empty when Media carries the message.
getter/setter pair
- to ↔ String?
-
To is the number to send to, in E.164.
getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override
Static Methods
-
fromJson(
dynamic value) → MessageInput? -
Returns a new MessageInput instance and imports its values from
valueif it's a Map, null otherwise. -
listFromJson(
dynamic json, {bool growable = false}) → List< MessageInput> -
mapFromJson(
dynamic json) → Map< String, MessageInput> -
mapListFromJson(
dynamic json, {bool growable = false}) → Map< String, List< MessageInput> >
Constants
-
requiredKeys
→ const Set<
String> - The list of required keys that must be present in a JSON.