CallbackCollectionAdapter<T, F> class final

Adapts a plain asynchronous loader to the legacy CollectionAdapter interface without adding transport behavior.

Implemented types

Constructors

CallbackCollectionAdapter(CollectionLoader<T, F> loader)
Wraps loader without executing it.
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
loader → CollectionLoader<T, F>
Callback invoked for every load request.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

load(CollectionQuery<F> query) → Future<CollectionSnapshot<T>>
Forwards query to loader, returning its future and propagating its errors.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

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