mirror of
https://github.com/kodjodevf/mangayomi.git
synced 2026-04-21 03:32:06 +00:00
54 lines
1.3 KiB
Dart
54 lines
1.3 KiB
Dart
import 'dart:io';
|
|
import 'dart:typed_data';
|
|
|
|
import 'package:mangayomi/models/chapter.dart';
|
|
import 'package:mangayomi/models/page.dart';
|
|
import 'package:mangayomi/services/get_chapter_pages.dart';
|
|
|
|
class UChapDataPreload {
|
|
Chapter? chapter;
|
|
Directory? directory;
|
|
PageUrl? pageUrl;
|
|
bool? isLocale;
|
|
Uint8List? archiveImage;
|
|
int? index;
|
|
GetChapterPagesModel? chapterUrlModel;
|
|
int? pageIndex;
|
|
Uint8List? cropImage;
|
|
bool isTransitionPage;
|
|
Chapter? nextChapter;
|
|
String? mangaName;
|
|
bool? isLastChapter;
|
|
|
|
UChapDataPreload(
|
|
this.chapter,
|
|
this.directory,
|
|
this.pageUrl,
|
|
this.isLocale,
|
|
this.archiveImage,
|
|
this.index,
|
|
this.chapterUrlModel,
|
|
this.pageIndex, {
|
|
this.cropImage,
|
|
this.isTransitionPage = false,
|
|
this.nextChapter,
|
|
this.mangaName,
|
|
this.isLastChapter = false,
|
|
});
|
|
|
|
UChapDataPreload.transition({
|
|
required Chapter currentChapter,
|
|
required this.nextChapter,
|
|
required String this.mangaName,
|
|
required int this.pageIndex,
|
|
this.isLastChapter = false,
|
|
}) : chapter = currentChapter,
|
|
isTransitionPage = true,
|
|
directory = null,
|
|
pageUrl = null,
|
|
isLocale = null,
|
|
archiveImage = null,
|
|
index = null,
|
|
chapterUrlModel = null,
|
|
cropImage = null;
|
|
}
|