0Pricing
Flutter Mobile Development · Lesson

Streams & Reactive Data

Learn how to work with Dart Streams in Flutter to handle continuous asynchronous data such as live updates, sockets and reactive UI.

Beyond a Single Future

A Future gives you one value later. A Stream gives you many values over time.

  • WebSocket messages
  • Sensor readings
  • Live database updates

Streams are the reactive backbone of async Dart.

Listening to a Stream

Subscribe to a stream with listen, supplying callbacks for data, errors and completion.

stream.listen(
  (data) => print('Got: ' + data.toString()),
  onError: (e) => print('Error: ' + e.toString()),
  onDone: () => print('Done'),
);

All lessons in this course

  1. Futures & Async/Await
  2. HTTP Requests & JSON
  3. Error Handling in Async
  4. Streams & Reactive Data
← Back to Flutter Mobile Development