1
0
mirror of https://github.com/stonega/tsacdop synced 2025-01-24 04:32:28 +01:00
tsacdop-podcast-app-android/lib/class/audiostate.dart

21 lines
507 B
Dart
Raw Normal View History

2020-02-09 13:29:09 +01:00
import 'package:flutter/foundation.dart';
import 'package:tsacdop/class/episodebrief.dart';
2020-02-09 13:29:09 +01:00
enum AudioState {load, play, pause, complete, error}
class AudioPlay with ChangeNotifier {
2020-02-09 13:29:09 +01:00
EpisodeBrief _episode;
EpisodeBrief get episode => _episode;
set episodeLoad(EpisodeBrief episdoe){
_episode = episdoe;
notifyListeners();
2020-02-09 13:29:09 +01:00
}
AudioState _audioState;
AudioState get audioState => _audioState;
set audioState(AudioState state){
_audioState = state;
notifyListeners();
}
}