Answers for "Bad state: Stream has already been listened to"

1

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);
    });
Posted by: Guest on October-27-2021

Code answers related to "Bad state: Stream has already been listened to"

Browse Popular Code Answers by Language