mirror of
https://github.com/venera-app/venera.git
synced 2025-09-27 07:47:24 +00:00
23 lines
349 B
Dart
23 lines
349 B
Dart
import 'package:flutter/widgets.dart' show ChangeNotifier;
|
|
|
|
abstract class DownloadTask with ChangeNotifier {
|
|
int get current;
|
|
|
|
int get total;
|
|
|
|
double get progress => current / total;
|
|
|
|
bool get isComplete => current == total;
|
|
|
|
int get speed;
|
|
|
|
void cancel();
|
|
|
|
void pause();
|
|
|
|
void resume();
|
|
|
|
String get title;
|
|
|
|
String? get cover;
|
|
} |