ListBloc<R, S> class abstract

Inheritance
Available Extensions

Constructors

ListBloc({int pageSize = 10})

Properties

cache List<S>
final
controller ScrollController
final
error StateError
no setterinherited
hasError bool
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
isBusy bool
no setterinherited
maxExtentReached bool
getter/setter pair
pageSize int
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
state → ListOp<S>
no setterinherited
stream Stream<ListOp<S>?>
Broadcast Stream to which all builders listen
no setterinherited

Methods

add(S item) → void
clear() → void
dispose() Future<void>
Send a done event and disposes the stream
inherited
fetch(int from, int to) Future<List<S>>
load(int i) → void
nextState(ListOp<S>? currentState, ListOp<S> update) → ListOp<S>?
Called to calculate the new state
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
refresh() → void
Broadcasts the same state
inherited
remove(S item) → void
reset() → void
setBusy({String? event}) → void
Called by blocs (subclasses) when the updated state isn't available immediately
inherited
setError(StateError error, {String? event}) → void
Called by blocs (subclasses) when an error occurs
inherited
setState(ListOp<S> update, {String? event}) → void
Called by blocs (subclasses) when the state is updated
inherited
toString() String
A string representation of this object.
inherited

Operators

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