MessageGroup class

Consecutive messages from the same author, shown under one profile.

By default, messages are grouped when they are on the same side, have the same Message.name and were sent within the same minute.

Constructors

MessageGroup({required List<Message> messages, required String name, required bool isSender, required String timestamp})
Creates a MessageGroup.

Properties

hashCode → int
The hash code for this object.
no setterinherited
isSender → bool
Whether the messages are sender messages.
final
messages → List<Message>
Messages in this group, oldest first.
final
name → String
Author name shared by the messages.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
timestamp → String
Timestamp of the message that started the group.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
sortMessages() → void
Sorts messages by timestamp, placing failed and then loading sender messages last.
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited