mirror of
https://github.com/venera-app/venera.git
synced 2025-09-27 07:47:24 +00:00
initial commit
This commit is contained in:
23
lib/network/download.dart
Normal file
23
lib/network/download.dart
Normal file
@@ -0,0 +1,23 @@
|
||||
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;
|
||||
}
|
Reference in New Issue
Block a user