Initial commit

This commit is contained in:
gasaichandesu
2025-08-30 19:47:42 +04:00
commit 58d7808a8d
100 changed files with 6186 additions and 0 deletions
@@ -0,0 +1,24 @@
import 'package:flutter/foundation.dart';
import 'package:moonwell_launcher/features/downloader/domain/entities/download_progress.dart';
@immutable
final class HomeScreenModel {
/// The current download progress.
final DownloadProgress progress;
/// The output path for the downloaded file.
final Uri? outputPath;
const HomeScreenModel({required this.progress, this.outputPath});
const HomeScreenModel.initial()
: progress = const DownloadProgress.initial(),
outputPath = null;
HomeScreenModel copyWith({DownloadProgress? progress, Uri? outputPath}) {
return HomeScreenModel(
progress: progress ?? this.progress,
outputPath: outputPath ?? this.outputPath,
);
}
}