This commit is contained in:
Phuoc Nguyen
2025-11-25 18:00:01 +07:00
parent 84669ac89c
commit 5e9b0cb562
9 changed files with 337 additions and 167 deletions

View File

@@ -26,9 +26,9 @@ class OrderStatusLocalDataSource {
/// Get cached order status list
List<OrderStatusModel> getCachedStatusList() {
try {
final values = _box.values.whereType<OrderStatusModel>().toList();
final values = _box.values.whereType<OrderStatusModel>().toList()
// Sort by index
values.sort((a, b) => a.index.compareTo(b.index));
..sort((a, b) => a.index.compareTo(b.index));
return values;
} catch (e) {
return [];