Message constructor
const
Message(})
Constructs an instance of Message.
Implementation
const Message(
this.text,
this.timestamp,
this.person, {
this.dataMimeType,
this.dataUri,
}) : assert(
(dataMimeType == null && dataUri == null) ||
(dataMimeType != null && dataUri != null),
'Must provide both dataMimeType and dataUri together or not at all.',
);