TF-832 Add Set method for forward and unit test

This commit is contained in:
dab246
2022-08-19 11:56:06 +07:00
committed by Dat H. Pham
parent 2c82d8ecac
commit b86ae96c30
4 changed files with 270 additions and 0 deletions
+11
View File
@@ -22,6 +22,17 @@ class TMailForward extends Forward {
Map<String, dynamic> toJson() => _$TMailForwardToJson(this);
TMailForward copyWith({
ForwardId? id,
bool? localCopy,
Set<String>? forwards,
}) {
return TMailForward(
id: id ?? this.id,
localCopy: localCopy ?? this.localCopy,
forwards: forwards ?? this.forwards,
);
}
@override
List<Object?> get props => [
id,