mirror of
https://github.com/KRTirtho/spotube.git
synced 2025-12-08 16:27:31 +00:00
25 lines
503 B
Dart
25 lines
503 B
Dart
import 'package:dio/dio.dart';
|
|
|
|
class DownloadRequest {
|
|
final String url;
|
|
final String path;
|
|
var cancelToken = CancelToken();
|
|
var forceDownload = false;
|
|
|
|
DownloadRequest(
|
|
this.url,
|
|
this.path,
|
|
);
|
|
|
|
@override
|
|
bool operator ==(Object other) =>
|
|
identical(this, other) ||
|
|
other is DownloadRequest &&
|
|
runtimeType == other.runtimeType &&
|
|
url == other.url &&
|
|
path == other.path;
|
|
|
|
@override
|
|
int get hashCode => url.hashCode ^ path.hashCode;
|
|
}
|