DRLocale class

提示文案的表(《sdk-web/3.接口设计》第 16 节,《sdk-web/2.功能概述文档》第 17 节):各节的键与 Web SDK 的 zhCN 相同。 App 用 copyWith 替换其中的条目,或整体换成其他语言。占位符写作 {name}。 名称带 DR 前缀,避开 Flutter 的 Locale(《3.接口设计》第 2 节)。

Constructors

DRLocale({required Map<String, String> errors, required String mutedUntil, required String deletedUser, required String unnamedGroup, required String system, required String you, required Map<String, String> summary, required Map<String, String> recall, required Map<String, String> tip, required Map<String, String> call})
const

Properties

call → Map<String, String>
通话记录。
final
deletedUser → String
final
errors → Map<String, String>
错误:先找 code.reason,再找 code。
final
hashCode → int
The hash code for this object.
no setterinherited
mutedUntil → String
final
recall → Map<String, String>
撤回提示:self、sender、byAdmin、byServer。
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
summary → Map<String, String>
会话列表的摘要:image、voice、video、file、location、custom、unknown、recalled、call。
final
system → String
final
tip → Map<String, String>
群提示:按《消息/3.接口设计》第 12.3 节的 kind,另有 more、separator、unknown。
final
unnamedGroup → String
final
you → String
final

Methods

copyWith({Map<String, String>? errors, String? mutedUntil, String? deletedUser, String? unnamedGroup, String? system, String? you, Map<String, String>? summary, Map<String, String>? recall, Map<String, String>? tip, Map<String, String>? call}) → DRLocale
替换其中的条目:各节的表按键合并(没给的键沿用原来的)。
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