IterableLazyLoadBloc<T> class

A LazyLoadBloc that feeds from iterable synchronously in chunks of pageSize.

Good for mocks, local synchronous file system reads, etc.

Inheritance

Constructors

IterableLazyLoadBloc({required Iterable<T> iterable, int pageSize = 1})

Properties

clientFilters List<AbstractClientFilter<T>>
finalinherited
currentState CollectionState<T>
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
initialState CollectionState<T>
finalinherited
iterable Iterable<T>
final
pageSize int
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
states Stream<CollectionState<T>>
no setterinherited
totalLimit int?
finalinherited

Methods

createState() CollectionState<T>
override
dispose() Future<void>
inherited
loadAllIfCan() Future<void>
override
loadMoreIfCan() Future<void>
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onError(Object error, StackTrace trace) → void
inherited
pushOutput() → void
inherited
toString() String
A string representation of this object.
inherited

Operators

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