mirror of
https://github.com/h7x4/Jisho-Study-Tool.git
synced 2025-01-22 10:24:46 +01:00
28 lines
509 B
Dart
28 lines
509 B
Dart
import 'package:unofficial_jisho_api/api.dart';
|
|
|
|
abstract class KanjiState {
|
|
const KanjiState();
|
|
}
|
|
|
|
class KanjiSearchInitial extends KanjiState {
|
|
KanjiSearchInitial();
|
|
}
|
|
|
|
class KanjiSearchLoading extends KanjiState {
|
|
KanjiSearchLoading();
|
|
}
|
|
|
|
class KanjiSearchFinished extends KanjiState {
|
|
final KanjiResult kanji;
|
|
|
|
KanjiSearchFinished(this.kanji);
|
|
}
|
|
|
|
class KanjiSearchError extends KanjiState {
|
|
final String message;
|
|
|
|
KanjiSearchError(this.message);
|
|
}
|
|
|
|
class ReKanjiSearch extends KanjiState {}
|