From f07da2ef25a07becc7d6ea3e1b9bc9c96b42e81a Mon Sep 17 00:00:00 2001 From: sorenthompson-wk Date: Thu, 2 Nov 2023 10:31:20 -0600 Subject: [PATCH] update typing in store.dart --- lib/src/store.dart | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/src/store.dart b/lib/src/store.dart index 9972466..de5d3c0 100644 --- a/lib/src/store.dart +++ b/lib/src/store.dart @@ -29,7 +29,7 @@ typedef StoreHandler = Function(Store event); /// /// General guidelines with respect to a `Store`'s data: /// - A `Store`'s data should not be exposed for direct mutation. -/// - A `Store`'s data should be mutated internally in response to [Action]s. +/// - A `Store`'s data should be mutated internally in response to [ActionV2]s. /// - A `Store` should expose relevant data ONLY via public getters. /// /// To receive notifications of a `Store`'s data mutations, `Store`s can be @@ -141,7 +141,7 @@ class Store extends Stream with Disposable { /// Deprecated: 2.9.5 /// To be removed: 3.0.0 @deprecated - triggerOnAction(Action action, [void onAction(payload)]) { + triggerOnAction(ActionV2 action, [void onAction(payload)]) { triggerOnActionV2(action, onAction); } @@ -153,7 +153,7 @@ class Store extends Stream with Disposable { /// called until that future has resolved. /// /// If the `Store` has been disposed, this method throws a [StateError]. - void triggerOnActionV2(Action action, + void triggerOnActionV2(ActionV2 action, [FutureOr onAction(T payload)]) { if (isOrWillBeDisposed) { throw StateError('Store of type $runtimeType has been disposed');