import 'package:equatable/equatable.dart';
import 'package:flutter/material.dart';

@immutable
abstract class CourseQuizState extends Equatable {
  CourseQuizState([List props = const []]) : super();

  @override
  // TODO: implement props
  List<Object> get props => [];
}

class InitialCourseQuizState extends CourseQuizState {}

class CourseQuizLoading extends CourseQuizState {
  @override
  String toString() => 'CourseQuizLoading';
}

class CourseQuizSuccess extends CourseQuizState {
  @override
  String toString() {
    return 'CourseQuizSuccess';
  }
}

class CourseQuizFailure extends CourseQuizState {
  final String error;

  CourseQuizFailure(this.error);

  @override
  String toString() => 'CourseQuizFailure { error: $error }';
}
