TF-4169 Add Label/set method

This commit is contained in:
dab246
2025-11-24 11:30:58 +07:00
committed by Dat H. Pham
parent 5f4b85cab0
commit 0c5d6e6534
6 changed files with 344 additions and 23 deletions
+10 -5
View File
@@ -16,12 +16,17 @@ part 'label.g.dart';
],
)
class Label with EquatableMixin {
final Id id;
final String displayName;
final String keyword;
final Id? id;
final String? keyword;
final String? displayName;
final HexColor? color;
Label(this.id, this.displayName, this.keyword, this.color);
Label({
this.id,
this.keyword,
this.displayName,
this.color,
});
factory Label.fromJson(Map<String, dynamic> json) => _$LabelFromJson(json);
@@ -30,8 +35,8 @@ class Label with EquatableMixin {
@override
List<Object?> get props => [
id,
displayName,
keyword,
displayName,
color,
];
}