import 'package:better_player/better_player.dart'; import 'package:equatable/equatable.dart'; import 'package:teso/Classes/Firebase/Posts.dart'; abstract class VideoPlayerState extends Equatable { @override List get props => const []; } class VideoPlayerStateInitial extends VideoPlayerState { @override List get props => const []; } class VideoPlayerStateLoading extends VideoPlayerState {} class VideoPlayerStateError extends VideoPlayerState { final String message; VideoPlayerStateError(this.message); @override List get props => [message]; } class VideoPlayerStateLoaded extends VideoPlayerState { final FBPosts video; final BetterPlayerController controller; VideoPlayerStateLoaded(this.video, this.controller) : assert(video != null), assert(controller != null); @override List get props => [video, controller]; }