ListBloc<R, S> class Null safety

Inheritance
Available Extensions

Constructors

ListBloc({int pageSize = 10})

Properties

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

Methods

add(S item) → void
clear() → void
dispose() Future<void>
Send a done event and disposes the stream
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
@protectedinherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent 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
@protectedinherited
setError(StateError error, {String? event}) → void
Called by blocs (subclasses) when an error occurs
@protectedinherited
setState(ListOp<S> update, {String? event}) → void
Called by blocs (subclasses) when the state is updated
@protectedinherited
toString() String
A string representation of this object.
inherited

Operators

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