Skip to content

Commit

Permalink
update toString
Browse files Browse the repository at this point in the history
  • Loading branch information
hoc081098 committed Jan 26, 2025
1 parent f04a3ee commit 2e42e31
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/rxdart_flutter/lib/src/value_stream_builder.dart
Original file line number Diff line number Diff line change
Expand Up @@ -161,13 +161,13 @@ class _ValueStreamBuilderState<T> extends State<ValueStreamBuilder<T>> {
final previousData = currentData;
currentData = newData;
if (buildWhen == null || buildWhen(previousData, newData)) {
setState(_emptyFn);
setState(emptyFn);
}
},
onError: (Object e, StackTrace s) {
error = ErrorAndStackTrace(UnhandledStreamError(e), s);
reportError();
setState(_emptyFn);
setState(emptyFn);
},
);
}
Expand All @@ -185,7 +185,7 @@ class _ValueStreamBuilderState<T> extends State<ValueStreamBuilder<T>> {
properties.add(DiagnosticsProperty('subscription', subscription));
}

static void _emptyFn() {}
static void emptyFn() {}

void reportError() {
final error = this.error;
Expand Down

0 comments on commit 2e42e31

Please sign in to comment.