Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

type '_BroadcastStream<dynamic>' is not a subtype of type 'Stream<ForecastBlocState>' #1

Open
vineetk1984 opened this issue Jun 26, 2022 · 0 comments

Comments

@vineetk1984
Copy link

════════ Exception caught by widgets library ═══════════════════════════════════
The following _TypeError was thrown building WeatherListScreen(dirty, dependencies: [ForecastBlocProvider], state: _WeatherListScreenState#fd8a6):
type '_BroadcastStream' is not a subtype of type 'Stream'

The relevant error-causing widget was
WeatherListScreen
package:bloc_example/main.dart:22
When the exception was thrown, this was the stack
#0 ForecastBloc.forecastStream
package:bloc_example/forecast_bloc.dart:15
#1 _WeatherListScreenState.build
package:bloc_example/main.dart:56
#2 StatefulElement.build
package:flutter/…/widgets/framework.dart:4870
#3 ComponentElement.performRebuild
package:flutter/…/widgets/framework.dart:4754
#4 StatefulElement.performRebuild
package:flutter/…/widgets/framework.dart:4928
#5 Element.rebuild
package:flutter/…/widgets/framework.dart:4477
#6 ComponentElement._firstBuild
package:flutter/…/widgets/framework.dart:4735
#7 StatefulElement._firstBuild
package:flutter/…/widgets/framework.dart:4919
#8 ComponentElement.mount
package:flutter/…/widgets/framework.dart:4729
... Normal element mounting (177 frames)
#185 Element.inflateWidget
package:flutter/…/widgets/framework.dart:3790
#186 MultiChildRenderObjectElement.inflateWidget
package:flutter/…/widgets/framework.dart:6422
#187 MultiChildRenderObjectElement.mount
package:flutter/…/widgets/framework.dart:6433
... Normal element mounting (377 frames)
#564 Element.inflateWidget
package:flutter/…/widgets/framework.dart:3790
#565 Element.updateChild
package:flutter/…/widgets/framework.dart:3540
#566 RenderObjectToWidgetElement._rebuild
package:flutter/…/widgets/binding.dart:1198
#567 RenderObjectToWidgetElement.mount
package:flutter/…/widgets/binding.dart:1167
#568 RenderObjectToWidgetAdapter.attachToRenderTree.
package:flutter/…/widgets/binding.dart:1112
#569 BuildOwner.buildScope
package:flutter/…/widgets/framework.dart:2600
#570 RenderObjectToWidgetAdapter.attachToRenderTree
package:flutter/…/widgets/binding.dart:1111
#571 WidgetsBinding.attachRootWidget
package:flutter/…/widgets/binding.dart:944
#572 WidgetsBinding.scheduleAttachRootWidget.
package:flutter/…/widgets/binding.dart:924
(elided 11 frames from class _RawReceivePortImpl, class _Timer, dart:async, and dart:async-patch)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant