StreamBuilder<T> class

A Widget that is rebuilt with the latest snapshot of a Stream.

Inheritance

Constructors

StreamBuilder(AsyncWidgetBuilder<T> builder, {Stream<T>? stream, T? initialData, String? key, Ref? ref})
Creates a new instance of StreamBuilder.
const

Properties

builder AsyncWidgetBuilder<T>
final
hashCode int
The hash code for this object.
no setterinherited
initialData → T?
final
key String?
finalinherited
ref Ref?
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stream Stream<T>?
final

Methods

createNode() StatefulNode<StatefulWidget>
Returns a Node corresponding to this Widget at a particular location in the Node tree.
inherited
createState() State<StatefulWidget>
Creates the mutable state for this widget.
override
matches(Widget otherWidget) bool
Checks if two widgets match during a ReassemblableNode reassembly.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited