From 3e0621a47be75ce38d3288d7db209b7d98302931 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petrus=20Nguy=E1=BB=85n=20Th=C3=A1i=20H=E1=BB=8Dc?= Date: Sun, 26 Jan 2025 14:28:54 +0700 Subject: [PATCH] Update value_stream_builder.dart (#777) --- packages/rxdart_flutter/lib/src/value_stream_builder.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/rxdart_flutter/lib/src/value_stream_builder.dart b/packages/rxdart_flutter/lib/src/value_stream_builder.dart index 52551cee..8f060800 100644 --- a/packages/rxdart_flutter/lib/src/value_stream_builder.dart +++ b/packages/rxdart_flutter/lib/src/value_stream_builder.dart @@ -155,7 +155,7 @@ class _ValueStreamBuilderState extends State> { 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; @@ -180,7 +180,7 @@ class _ValueStreamBuilderState extends State> { @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)); }