Skip to content

Commit 024d557

Browse files
committed
notifier as arg
1 parent 608f9ae commit 024d557

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/src/adapter/watch_adapter.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ mixin _WatchAdapter<T extends DataModelMixin<T>> on _RemoteAdapter<T> {
120120
data: DataState(findAllLocal(), isLoading: remote),
121121
);
122122

123-
notifier._reloadFn = () async {
123+
notifier._reloadFn = (notifier) async {
124124
if (!notifier.mounted || remote == false) {
125125
return;
126126
}
@@ -263,7 +263,7 @@ mixin _WatchAdapter<T extends DataModelMixin<T>> on _RemoteAdapter<T> {
263263
log(label,
264264
'initializing${alsoWatchNames.isNotEmpty ? ' (and also watching: ${alsoWatchNames.join(', ')})' : ''}');
265265

266-
notifier._reloadFn = () async {
266+
notifier._reloadFn = (notifier) async {
267267
if (!notifier.mounted || id == null || remote == false) return;
268268

269269
notifier.updateWith(isLoading: true);

0 commit comments

Comments
 (0)