Aidra Driver 1.3.5+68
Aidra Driver - Your path to green energy
Loading...
Searching...
No Matches
elearning_v2_state.dart
Go to the documentation of this file.
1part of 'elearning_v2_cubit.dart';
2
3abstract class ElearningV2State extends Equatable {
5
6 @override
7 List<Object> get props => [];
8}
9
10class ElearningV2Initial extends ElearningV2State {}
11
12// Courses states
13class LoadingCoursesState extends ElearningV2State {}
14
16 final List<CourseEntity> courses;
17
18 const CoursesLoadedState(this.courses);
19
20 @override
21 List<Object> get props => [courses];
22}
23
26
27 const CoursesLoadingFailureState(this.error);
28
29 @override
30 List<Object> get props => [error];
31}
32
33// Course details states
34class LoadingCourseDetailsState extends ElearningV2State {}
35
39 final List<QcmEntity> qcmList;
40
41 const CourseDetailsLoadedState(this.course, this.pdfPath, this.qcmList);
42
43 @override
44 List<Object> get props => [course, pdfPath, qcmList];
45}
46
47class CourseDetailsLoadingFailureState extends ElearningV2State {
48 final String error;
49
51
52 @override
53 List<Object> get props => [error];
54}
const CourseDetailsLoadingFailureState(this.error)
const CoursesLoadingFailureState(this.error)
override List< Object > get props
const ElearningV2State()
override List< Object?> get props
class Partner String
String get(String locale)
final String pdfPath
class CoursesLoadingFailureState extends ElearningV2State course
abstract class ElearningV2State extends Equatable courses
final List< QcmEntity > qcmList
const CourseDetailsLoadedState(this.course, this.pdfPath, this.qcmList)
const CoursesLoadedState(this.courses)
abstract class UseCase< Type, Params > props