ChatData class
私聊数据
Constructors
- ChatData({required String toId, required String preview, required String userSession, required String senderAvatar, required String markdown, required String receiverAvatar, required String oId, required String time, required String fromId, required String senderUserName, required String content, required String receiverUserName})
-
ChatData.from(Map<
String, dynamic> data)
Properties
- content ↔ String
-
内容
getter/setter pair
- fromId ↔ String
-
发送 id
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- markdown ↔ String
-
markdown
getter/setter pair
- oId ↔ String
-
ID
getter/setter pair
- preview ↔ String
-
预览内容
getter/setter pair
- receiverAvatar ↔ String
-
接收者头像
getter/setter pair
- receiverUserName ↔ String
-
接收者用户名
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- senderAvatar ↔ String
-
发送者头像
getter/setter pair
- senderUserName ↔ String
-
发送者用户名
getter/setter pair
- time ↔ String
-
时间
getter/setter pair
- toId ↔ String
-
接收 id
getter/setter pair
- userSession ↔ String
-
用户会话
getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited