Message class
Constructors
-
Message.new({String? id, required DateTime date, required String text, required Role role, List<
int> ? audio, Usage? usage}) -
Message.assistant({required String message, Usage? usage, List<
int> ? audio, DateTime? date}) -
factory
-
Message.fromMap(Map<
String, dynamic> map) -
factory
- Message.user({required String message, DateTime? date})
-
factory
Properties
-
audio
→ List<
int> ? -
final
- date ↔ DateTime
-
getter/setter pair
- 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
- usage → Usage?
-
final
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