improved performance and battery usage on older devices

This commit is contained in:
2026-09-25 23:58:08 +02:00
parent ed8e52f475
commit 56a497985b
70 changed files with 1631 additions and 621 deletions
+7
View File
@@ -0,0 +1,7 @@
import 'dart:convert';
/// Content equality for API models that define no `==` but serialise to JSON.
/// Comparing the encoded strings is cheaper than a deep map walk and treats
/// both sides identically (same `toJson`, same field order).
bool sameJson(Object? a, Object? b) =>
a != null && b != null && jsonEncode(a) == jsonEncode(b);