Files
venera/lib/network/download.dart
2024-09-29 16:17:03 +08:00

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;
}