Skip to content

Commit

Permalink
Update value_stream_builder.dart (#777)
Browse files Browse the repository at this point in the history
  • Loading branch information
hoc081098 authored Jan 26, 2025
1 parent d49dcb5 commit 3e0621a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/rxdart_flutter/lib/src/value_stream_builder.dart
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ class _ValueStreamBuilderState<T> extends State<ValueStreamBuilder<T>> {

final buildWhen = widget._buildWhen;

assert(subscription == null, 'Stream already subscribed');
assert(subscription == null, 'The stream is already listened to!');
subscription = stream.listen(
(newData) {
final previousData = currentData;
Expand All @@ -180,7 +180,7 @@ class _ValueStreamBuilderState<T> extends State<ValueStreamBuilder<T>> {
@override
void debugFillProperties(DiagnosticPropertiesBuilder properties) {
super.debugFillProperties(properties);
properties.add(DiagnosticsProperty.lazy('currentData', () => currentData));
properties.add(DiagnosticsProperty.lazy('data', () => currentData));
properties.add(DiagnosticsProperty('error', error));
properties.add(DiagnosticsProperty('subscription', subscription));
}
Expand Down

0 comments on commit 3e0621a

Please sign in to comment.