uigitdev_stream_holder library
Classes
-
StreamHolder<
T> -
StreamHolderBuilder<
T> -
Input type is a StreamHolder and
builder
these parameters are required.
Enums
- StreamHolderState
- There are 3 types of States. StreamHolderState.none, StreamHolderState.hasError, StreamHolderState.hasData StreamHolderState.none will be activated when StreamHolder generic type is nullable <T?> and the current data is null.
Typedefs
-
AsyncStreamHolderBuilder<
T> = Widget Function(BuildContext context, StreamHolderState state, T? data, Object? error) -
Custom builder Widget, Function which will give the
context
,sate
,data
anderror
.