bloc_example icon indicating copy to clipboard operation
bloc_example copied to clipboard

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

Open vineetk1984 opened this issue 2 years ago • 0 comments

════════ 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<ForecastBlocState>'

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)

vineetk1984 avatar Jun 26 '22 07:06 vineetk1984