SmsMessage class

A SMS Message

Used to send message or used to read message.

Implemented types

Constructors

SmsMessage(String? _address, String? _body, {int? id, int? threadId, int? sim, bool? read, DateTime? date, DateTime? dateSent, SmsMessageKind? kind})
SmsMessage.fromJson(Map data)
Read message from JSON

Properties

address String?
Get address, alias phone number
no setter
body String?
Get message body
no setter
date DateTime?
Get date
getter/setter pair
dateSent DateTime?
Get date sent
no setter
hashCode int
The hash code for this object.
no setterinherited
id int?
Get message id
no setter
isRead bool?
Check if message is read
no setter
kind SmsMessageKind?
Get message kind
getter/setter pair
onStateChanged Stream<SmsMessageState>
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sender String?
Get sender, alias phone number
no setter
sim int?
Get Sim recieved the message
no setter
state SmsMessageState
Get message state
getter/setter pair
threadId int?
Get thread id
no setter
toMap Map
Convert SMS to map
no setter

Methods

compareTo(SmsMessage other) int
Compares this object to another object.
override
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