mirror of
https://github.com/h7x4/Jisho-Study-Tool.git
synced 2024-12-22 13:57:29 +01:00
26 lines
456 B
Dart
26 lines
456 B
Dart
part of 'search_bloc.dart';
|
|
|
|
@immutable
|
|
abstract class SearchState {
|
|
const SearchState();
|
|
}
|
|
|
|
class SearchInitial extends SearchState {
|
|
const SearchInitial();
|
|
}
|
|
|
|
class SearchLoading extends SearchState {
|
|
const SearchLoading();
|
|
}
|
|
|
|
class SearchFinished extends SearchState {
|
|
final List<JishoResult> results;
|
|
|
|
const SearchFinished(this.results);
|
|
}
|
|
|
|
class SearchError extends SearchState {
|
|
final String message;
|
|
|
|
const SearchError(this.message);
|
|
} |