mirror of
https://github.com/stonega/tsacdop
synced 2024-12-16 10:22:23 +01:00
19 lines
468 B
Dart
19 lines
468 B
Dart
import 'package:flutter/foundation.dart';
|
|
|
|
enum DownloadState { stop, load, donwload, complete, error }
|
|
|
|
class EpisodeDownload with ChangeNotifier {
|
|
String _title;
|
|
String get title => _title;
|
|
set title(String t) {
|
|
_title = t;
|
|
notifyListeners();
|
|
}
|
|
DownloadState _downloadState = DownloadState.stop;
|
|
DownloadState get downloadState => _downloadState;
|
|
set downloadState(DownloadState state){
|
|
_downloadState = state;
|
|
notifyListeners();
|
|
}
|
|
}
|