Jisho-Study-Tool/lib/bloc/search/search_state.dart

26 lines
451 B
Dart
Raw Normal View History

2020-07-09 20:06:48 +02:00
part of 'search_bloc.dart';
@immutable
2020-08-19 16:26:25 +02:00
abstract class SearchState {
const SearchState();
}
2020-07-09 20:06:48 +02:00
2020-08-19 16:26:25 +02:00
class SearchInitial extends SearchState {
const SearchInitial();
}
2020-07-09 20:06:48 +02:00
2020-08-19 16:26:25 +02:00
class SearchLoading extends SearchState {
const SearchLoading();
}
2020-07-09 20:06:48 +02:00
2020-08-19 16:26:25 +02:00
class SearchFinished extends SearchState {
final JishoAPIResult result;
2020-07-09 20:06:48 +02:00
2020-08-19 16:26:25 +02:00
const SearchFinished(this.result);
}
class SearchError extends SearchState {
final String message;
const SearchError(this.message);
}