feat: add equality operators, make history screen paginated, random performance updates

This commit is contained in:
2026-07-29 18:10:46 +02:00
parent da5588cd1c
commit 031a618220
22 changed files with 702 additions and 79 deletions
+21
View File
@@ -16,4 +16,25 @@ class ClosedTabItem {
});
int get lineTotalInCents => quantity * unitPriceInCents;
@override
bool operator ==(Object other) =>
identical(this, other) ||
other is ClosedTabItem &&
id == other.id &&
closedTabId == other.closedTabId &&
productId == other.productId &&
productName == other.productName &&
quantity == other.quantity &&
unitPriceInCents == other.unitPriceInCents;
@override
int get hashCode => Object.hash(
id,
closedTabId,
productId,
productName,
quantity,
unitPriceInCents,
);
}