FakePrefetchQuery class final

A hand-written AssetSource for tests. There is no mocking library in this repo, by design.

Every field is public and mutable so a test can reshape the library between calls — which is exactly what the limited-access flow needs. One recorded prefetch() call.

Constructors

FakePrefetchQuery(List<String> ids, ThumbSize size, int quality)
Creates a FakePrefetchQuery.
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
ids → List<String>
The ids.
final
quality → int
The quality.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
size → ThumbSize
The size.
final

Methods

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