RxStreamBuilder<T> class

Rx stream builder that will pre-populate the streams initial data if the given stream is an rx observable that holds the streams current value such as a BehaviorSubject or a ReplaySubject

Inheritance

Constructors

RxStreamBuilder({required Stream<T> stream, required AsyncWidgetBuilder<T> builder, T? initialData, int? valuesSnapshotIndex, Key? key})
Creates a new RxStreamBuilder that builds itself based on the latest snapshot of interaction with the specified stream and whose build strategy is given by builder.
const

Properties

builder AsyncWidgetBuilder<T>
The build strategy currently used by this builder.
final
hashCode int
The hash code for this object.
no setterinherited
initialData → T?
The data that will be used to create the initial snapshot. Note that the data held with a value / replay stream (if is is not null) will take precedence over the data provided.
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.
final
valuesSnapshotIndex int?
If the given stream is a ReplayObservable then this zero-based index will be used to pick the value to use as the initial data. Defaults to the last emitted value.
final

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() State<StatefulWidget>
Creates the mutable state for this widget at a given location in the tree.
override
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
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}) 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