Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR DART

Bad state: Stream has already been listened to

 StreamController<...> selectedLocation =
      StreamController<...>.broadcast();
      
  @override
  void initState() {
    final applicationBloc =
        Provider.of<ApplicationBloc>(context, listen: false);

    locationSubScription =
        applicationBloc.selectedLocation.stream.listen((place) {
      _goToPlace(place);
    });
 
PREVIOUS NEXT
Tagged: #Bad #Stream #listened
ADD COMMENT
Topic
Name
3+4 =