feat: reformat some pages
This commit is contained in:
@@ -36,6 +36,16 @@ class InventoryViewModel extends ChangeNotifier {
|
||||
);
|
||||
}
|
||||
|
||||
/// Starts watching again after a load error.
|
||||
void retry() {
|
||||
unawaited(_subscription?.cancel());
|
||||
_subscription = null;
|
||||
_hasLoaded = false;
|
||||
_loadError = null;
|
||||
notifyListeners();
|
||||
ensureLoaded();
|
||||
}
|
||||
|
||||
void _onProducts(List<Product> products) {
|
||||
_products = products;
|
||||
_hasLoaded = true;
|
||||
|
||||
Reference in New Issue
Block a user