EventStreamBuilder<T> class
Widget that builds itself based on the latest value a EventStream.
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- StreamBuilderBase<
T, AsyncSnapshot< T> > - StreamBuilder<
T> - EventStreamBuilder
Constructors
-
EventStreamBuilder({Key? key, EventStream<
T> ? stream, required AsyncWidgetBuilder<T> builder}) - Widget that builds itself based on the latest value a EventStream.
-
EventStreamBuilder.fromStream({Key? key, Stream<
T> ? stream, T? initialData, Object? initialError, required AsyncWidgetBuilder<T> builder}) -
Same as default EventStreamBuilder constructor, but with a Stream instead of a EventStream.
const
Properties
-
builder
→ AsyncWidgetBuilder<
T> -
The build strategy currently used by this builder.
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- initialData → T?
-
The data that will be used to create the initial snapshot.
finalinherited
- initialError → Object?
-
The error that will be used to create the initial snapshot.
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
stream
→ Stream<
T> ? -
The asynchronous computation to which this builder is currently connected,
possibly null. When changed, the current summary is updated using
afterDisconnected, if the previous stream was not null, followed by
afterConnected, if the new stream is not null.
finalinherited
Methods
-
afterConnected(
AsyncSnapshot< T> current) → AsyncSnapshot<T> -
Returns an updated version of the
current
summary reflecting that we are now connected to a stream.inherited -
afterData(
AsyncSnapshot< T> current, T data) → AsyncSnapshot<T> -
Returns an updated version of the
current
summary following a data event.inherited -
afterDisconnected(
AsyncSnapshot< T> current) → AsyncSnapshot<T> -
Returns an updated version of the
current
summary reflecting that we are no longer connected to a stream.inherited -
afterDone(
AsyncSnapshot< T> current) → AsyncSnapshot<T> -
Returns an updated version of the
current
summary following stream termination.inherited -
afterError(
AsyncSnapshot< T> current, Object error, StackTrace stackTrace) → AsyncSnapshot<T> -
Returns an updated version of the
current
summary following an error with a stack trace.inherited -
build(
BuildContext context, AsyncSnapshot< T> currentSummary) → Widget -
Returns a Widget based on the
currentSummary
.inherited -
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → State< StreamBuilderBase< T, AsyncSnapshot< >T> > -
Creates the mutable state for this widget at a given location in the tree.
inherited
-
debugDescribeChildren(
) → List< DiagnosticsNode> -
Returns a list of DiagnosticsNode objects describing this node's
children.
inherited
-
debugFillProperties(
DiagnosticPropertiesBuilder properties) → void -
Add additional properties associated with the node.
inherited
-
initial(
) → AsyncSnapshot< T> -
Returns the initial summary of stream interaction, typically representing
the fact that no interaction has happened at all.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toDiagnosticsNode(
{String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode -
Returns a debug representation of the object that is used by debugging
tools and by DiagnosticsNode.toStringDeep.
inherited
-
toString(
{DiagnosticLevel minLevel = DiagnosticLevel.info}) → String -
A string representation of this object.
inherited
-
toStringDeep(
{String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug, int wrapWidth = 65}) → String -
Returns a string representation of this node and its descendants.
inherited
-
toStringShallow(
{String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String -
Returns a one-line detailed description of the object.
inherited
-
toStringShort(
) → String -
A short, textual description of this widget.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited