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);
|
|
} |