INNER CODE UNIT · Dart
VideoLoader
blackmann/story_view · lib/widgets/story_video.dart:11
class VideoLoader {
String url;
File? videoFile;
Map<String, dynamic>? requestHeaders;
LoadState state = LoadState.loading;
VideoLoader(this.url, {this.requestHeaders});
void loadVideo(VoidCallback onComplete) {
if (this.videoFile != null) {
this.state = LoadState.success;
onComplete();
}
final fileStream = DefaultCacheManager()