ConversationDraft class

本地会话草稿(不跨端同步)。

  • 纯文本:直接存字符串
  • 结构化:JSON {"text":"...","ops":...}(对齐 Web {text, ops})

Constructors

ConversationDraft({required String text, dynamic ops})
const
ConversationDraft.decode(String raw)
factory

Properties

hashCode → int
The hash code for this object.
no setterinherited
isEmpty → bool
no setter
isRich → bool
no setter
ops → dynamic
可选富文本结构(如 Quill Delta ops);仅本机使用
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
text → String
列表预览 / 纯文本内容
final

Methods

encode() → String
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