You should use the following.
StreamController<...> _controller = StreamController<...>.broadcast();
More Related Contents:
- how to solve flutter CERTIFICATE_VERIFY_FAILED error while performing a POST request?
- Why does setState take a closure?
- Is there a way to load async data on InitState method?
- How can I get the size of the Text widget in Flutter
- Flutter TextFormField hidden by keyboard
- Flutter image preload
- Flutter Switching to Tab Reloads Widgets and runs FutureBuilder
- Persisting AppBar Drawer across all Pages Flutter
- how to convert an image to base64 image in flutter?
- How do I share an image on iOS and Android using Flutter?
- Replace initial Route in MaterialApp without animation?
- how can we use superscript and subscript text in flutter Text or RichText
- When I select a Textfield the keyboard moves over it
- Flutter Load Image from Firebase Storage
- Displaying text with Emojis on Flutter
- Flutter: Update Widgets On Resume?
- Logging large strings from Flutter
- How do I check if the Flutter application is in the foreground or not?
- How to pass data from child widget to its parent
- Can the spread operator be used to supply function arguments?
- Does using const in the widget tree improve performance?
- How to schedule background tasks in Flutter?
- How to use InputFormatter on Flutter TextField?
- Flutter – How to set status bar color when AppBar not present
- how to access an object created in one stateful widget in another stateful widget in flutter
- Flutter: Is it somehow possible to create App Widgets (Android) and Today Extensions (iOS)? [duplicate]
- convert a String of “uint8list” to a Unit8List
- How can I simulate a tap event on a Flutter widget?
- How do you get the document id after adding document in Cloud Firestore in Dart
- how to add or remove item to the the existing array in firestore ?