CustomStreamBuilder<T, E, T2, E2> class
Widget class for the library. Basically wraps around and abstract a StreamBuilder widget
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatelessWidget
- CustomStreamBuilder
Constructors
-
CustomStreamBuilder({Key? key, required Stream<
BaseModel< ? stream, required AsyncDataWidgetBuilder<T, E> >T> ? dataBuilder, AsyncErrorWidgetBuilder<T, E> ? errorBuilder, AsyncLoadingWidgetBuilder? loadingBuilder, AsyncNoContentWidgetBuilder? noContentBuilder, BaseModel<T, E> ? initialData}) -
CustomStreamBuilder.multiSubject({Key? key, required List<
Stream< ? streams, required AsyncDataWidgetBuilderMulti? itemBuilderMulti, List<BaseModel> >BaseModel> ? initialDataMulti}) -
CustomStreamBuilder.twoSubject({Key? key, required List<
Stream< ? streams, required AsyncDataWidgetBuilder2<BaseModel> >BaseModel< ? dataBuilder2, AsyncErrorWidgetBuilder<T?, E?> , BaseModel<T2?, E2?> >T, E> ? errorBuilder, AsyncLoadingWidgetBuilder? loadingBuilder, AsyncNoContentWidgetBuilder? noContentBuilder, BaseModel<List< ? initialData2})BaseModel> , E>
Properties
-
dataBuilder
↔ AsyncDataWidgetBuilder<
T> ? -
called when
addToModel
is called on blocgetter/setter pair -
dataBuilder2
↔ AsyncDataWidgetBuilder2<
BaseModel< ?T?, E?> , BaseModel<T2?, E2?> > -
called when
addToModel
is called on on either blocgetter/setter pair -
errorBuilder
↔ AsyncErrorWidgetBuilder<
T, E> ? -
called when
addToError
is called on blocgetter/setter pair - hashCode → int
-
The hash code for this object.
no setterinherited
-
initialData
↔ BaseModel<
T, E> ? -
initial data
getter/setter pair
-
initialData2
↔ BaseModel<
List< ?BaseModel> , E> -
initial data for both stream
getter/setter pair
-
initialDataMulti
↔ List<
BaseModel> ? -
initial data for all stream
getter/setter pair
- itemBuilderMulti ↔ AsyncDataWidgetBuilderMulti?
-
called when all stream has been loaded at least once
getter/setter pair
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- loadingBuilder ↔ AsyncLoadingWidgetBuilder?
-
called when
setAsLoading
is called on blocgetter/setter pair - noContentBuilder ↔ AsyncNoContentWidgetBuilder?
-
called when
setAsNoContent
is called on blocgetter/setter pair - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
stream
↔ Stream<
BaseModel< ?T, E> > -
the actual bloc
getter/setter pair
-
streams
↔ List<
Stream< ?BaseModel> > -
the list of blocs
getter/setter pair
Methods
-
build(
BuildContext context) → Widget -
Describes the part of the user interface represented by this widget.
override
-
createElement(
) → StatelessElement -
Creates a StatelessElement to manage this widget's 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
-
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