CollectionRouteSource<T> class
Paginated data source for a route pattern containing exactly one :key.
Constructors
-
CollectionRouteSource({required String routeId, required String pathPattern, required Future<
RouteDiscoveryPage< discover(String? cursor, int limit), required String keyOf(T record), required Future<T> >GeneratedRouteDocument> render(T record, String path), Iterable<String> tagsOf(T record)?, String? versionOf(T record)?, InitialGenerationPolicy initialGenerationPolicy = InitialGenerationPolicy.all, bool includeInInitialGeneration(T record)?, void onProgress(int discovered, int generated, int skipped)?, bool isCancelled()?, int pageSize = 100, int concurrency = 4, int maxRecords = 100000}) -
const
Properties
- concurrency → int
-
final
-
discover
→ Future<
RouteDiscoveryPage< Function(String? cursor, int limit)T> > -
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- includeInInitialGeneration → bool Function(T record)?
-
final
- initialGenerationPolicy → InitialGenerationPolicy
-
final
- isCancelled → bool Function()?
-
final
- keyOf → String Function(T record)
-
final
- maxRecords → int
-
final
- onProgress → void Function(int discovered, int generated, int skipped)?
-
final
- pageSize → int
-
final
- pathPattern → String
-
final
-
render
→ Future<
GeneratedRouteDocument> Function(T record, String path) -
final
- routeId → String
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
final
- versionOf → String? Function(T record)?
-
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