look_video_bloc.dart
1.09 KB
import 'package:flutter/cupertino.dart';
import 'package:flutter_bloc/flutter_bloc.dart';
import 'package:video_player/video_player.dart';
import 'package:wow_english/pages/section/subsection/base_section/bloc.dart';
import 'package:wow_english/pages/section/subsection/base_section/event.dart';
import 'package:wow_english/pages/section/subsection/base_section/state.dart';
part 'look_video_event.dart';
part 'look_video_state.dart';
class LookVideoBloc extends BaseSectionBloc<BaseSectionEvent, BaseSectionState> {
  VideoPlayerController? _controller;
  final String? _videoUrl;
  String? get videoUrl => _videoUrl;
  final String? _typeTitle;
  String? get typeTitle => _typeTitle;
  final String? _courseLessonId;
  String? get courseLessonId => _courseLessonId;
  final bool _isTopic;
  bool get isTopic => _isTopic;
  LookVideoBloc(this._videoUrl, this._typeTitle, this._courseLessonId, this._isTopic) : super(LookVideoInitial()) {
    on<LookVideoEvent>((event, emit) {
      // TODO: implement event handler
    });
    on<SectionAgainEvent>((event, emit) {
      emit(SectionAgainState());
    });
  }
}