fix(profiles): binder settle, active-id, and rebind correctness

This commit is contained in:
edde746
2026-07-02 11:41:25 +02:00
parent 2025e1f9fd
commit f9123eb40f
13 changed files with 446 additions and 144 deletions
+4
View File
@@ -34,6 +34,10 @@ abstract class ApiCache {
return _instance!;
}
/// Like [instance], but `null` before any backend cache registered —
/// for best-effort callers (nothing cached yet means nothing to clear).
static ApiCache? get maybeInstance => _instance;
static final Map<MediaBackend, ApiCache> _byBackend = {};
/// Subclasses call this from their own `initialize` to register themselves