MessageList class

A list of messages.

Annotations
  • @immutable

Constructors

MessageList({required String object, required List<Message> data, String? firstId, String? lastId, required bool hasMore})
Creates a MessageList.
const
MessageList.fromJson(Map<String, dynamic> json)
Creates a MessageList from JSON.
factory

Properties

data List<Message>
The list of messages.
final
firstId String?
The ID of the first message.
final
hashCode int
The hash code for this object.
no setteroverride
hasMore bool
Whether there are more messages.
final
lastId String?
The ID of the last message.
final
object String
The object type (always "list").
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Converts to JSON.
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
override