TextMessage.fromSmsMessage constructor
TextMessage.fromSmsMessage(
- SmsMessage sms
Implementation
factory TextMessage.fromSmsMessage(SmsMessage sms) => TextMessage(
id: sms.id,
address: sms.address,
body: sms.body,
size: (sms.body != null) ? sms.body!.length : null,
read: sms.read,
date: DateTime.fromMicrosecondsSinceEpoch(sms.date!, isUtc: true),
dateSent:
DateTime.fromMicrosecondsSinceEpoch(sms.dateSent!, isUtc: true),
type: sms.type,
status: sms.status,
);