SMS.fromList constructor
SMS.fromList(
- List data
creates an SMS instance from the list of objects received from the broadcast stream of event channel
Implementation
SMS.fromList(List data)
: body = data[0] as String,
sender = data[1] as String,
// convert the time received in milliseconds to DateTime object
timeReceived = DateTime.fromMillisecondsSinceEpoch(
int.parse(data[2] as String),
);