You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
542 B
26 lines
542 B
class DownloadEntity {
|
|
final int downloadedLevels;
|
|
final double percent;
|
|
|
|
const DownloadEntity({
|
|
required this.downloadedLevels,
|
|
required this.percent,
|
|
});
|
|
|
|
factory DownloadEntity.empty() {
|
|
return const DownloadEntity(downloadedLevels: 0, percent: 0);
|
|
}
|
|
}
|
|
|
|
class DownloadPageConfig {
|
|
final int downloadToLevel;
|
|
final String redirectTo;
|
|
final Map<String, String> routeParams;
|
|
|
|
const DownloadPageConfig({
|
|
required this.downloadToLevel,
|
|
required this.redirectTo,
|
|
this.routeParams = const {},
|
|
});
|
|
|
|
}
|