liveStore function
The store id among those the app lists in its status.
Throws a LiveCommandException naming the app's stores when it isn't one of them.
Implementation
LiveStore liveStore(Map<String, Object?> status, String id) {
final List<LiveStore> stores = LiveStore.listIn(status);
for (final LiveStore store in stores) {
if (store.id == id) return store;
}
throw LiveCommandException(
'No store "$id" in this app. Its stores: '
'${stores.map((LiveStore store) => '${store.id} (${store.size})').join(', ')}.',
);
}