TextMessage class Null safety

Holds a text messages (SMS).

Annotations

Constructors

TextMessage({int? id, String? address, String? body, int? size, bool? read, DateTime? date, DateTime? dateSent, SmsType? type, SmsStatus? status})
TextMessage.fromJson(Map<String, dynamic> json)
factory
TextMessage.fromSmsMessage(SmsMessage sms)
factory

Properties

address String?
The receiver address of this message
read / write
body String?
The text body of this message.
read / write
date DateTime?
The date this message was created.
read / write
dateSent DateTime?
The date this message was sent.
read / write
hashCode int
The hash code for this object. [...]
read-only, inherited
id int?
read / write
read bool?
Has the message been read?
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
size int?
The size in bytes of the body of the message.
read / write
status SmsStatus?
The state of the message:
read / write
type SmsType?
The type of message:
read / write

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent 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. [...]
inherited