Connect customer quotations and payment execution to Sendico (#50)
This commit is contained in:
1 parent
5d67c25c8e
commit
7a6510d1a8
45 files changed
+2696
-45
No files matched your search
@@ -140,6 +140,21 @@ class WalletProvider extends ChangeNotifier {
|
||||
return !saveFailed;
|
||||
}
|
||||
|
||||
/// Drop account-scoped state when the authenticated customer changes.
|
||||
void reset() {
|
||||
_revision++;
|
||||
_poll?.cancel();
|
||||
for (final pair in _settlements.values) {
|
||||
pair.$1.dispose(abandonActive: false);
|
||||
}
|
||||
_settlements.clear();
|
||||
data = null;
|
||||
preferredLocale = null;
|
||||
loading = failed = profileLoading = profileFailed = saving = saveFailed =
|
||||
false;
|
||||
notifyListeners();
|
||||
}
|
||||
|
||||
@override
|
||||
void dispose() {
|
||||
_disposed = true;
|
||||
|
||||
Reference in new issue
Block a user