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