mirror of
https://github.com/KRTirtho/spotube.git
synced 2026-05-09 00:34:36 +00:00
17 lines
359 B
Dart
17 lines
359 B
Dart
part of '../spotify.dart';
|
|
|
|
abstract class PaginatedState<K> {
|
|
final List<K> items;
|
|
final int offset;
|
|
final int limit;
|
|
final bool hasMore;
|
|
|
|
PaginatedState({
|
|
required this.items,
|
|
required this.offset,
|
|
required this.limit,
|
|
}) : hasMore = items.length >= limit;
|
|
|
|
PaginatedState<K> copyWith({List<K>? items, int? offset, int? limit});
|
|
}
|