Skip to content
masterclass Buddy

Flutter & Dart · Component

StreamBuilder

StreamBuilder rebuilds a widget from snapshots of a Stream. It can show stream data, errors, and completion state.

Last updated

Syntax

const StreamBuilder<T>({Key? key, T? initialData, required Stream<T>? stream, required AsyncWidgetBuilder<T> builder})

In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.

Subscribe
  • ValueListenableBuilder
  • StreamBuilderBase
  • AsyncSnapshot
  • ConnectionState

Source: StreamBuilder class - widgets library - Dart API. Checked 2026-11-03.