Message class

Constructors

Message.new({String? id, required DateTime date, required String text, required Role role})
Message.assistant({required String message})
factory
Message.fromMap(Map<String, dynamic> map)
factory
Message.user({required String message})
factory

Properties

date DateTime
final
hashCode int
The hash code for this object.
no setterinherited
id String?
getter/setter pair
role Role
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
text String
getter/setter pair
toGptMap Map<String, dynamic>
no setter

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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