mirrored_repositories/nirogi/lib/src
import 'package:meta/meta.dart';
import 'package:nirogi/src/models/models.dart';

abstract class SearchState {}

class SearchUninitialisedState extends SearchState {}

class SearchFetchingState extends SearchState {}

class SearchDrugFetchedState extends SearchState {
  final List<Drug> drugs;
  SearchDrugFetchedState({@required this.drugs}) : assert(drugs != null);
}

class SearchDiseaseFetchedState extends SearchState {
  final List<Disease> diseases;
  SearchDiseaseFetchedState({@required this.diseases})
      : assert(diseases != null);
}

class SearchSymptomFetchedState extends SearchState {
  final List<Symptom> symptoms;
  SearchSymptomFetchedState({@required this.symptoms})
      : assert(symptoms != null);
}

class SearchErrorState extends SearchState {}

class SearchEmptyState extends SearchState {}
