Jisho-Study-Tool/lib/bloc/database/database_event.dart

14 lines
316 B
Dart
Raw Normal View History

2021-07-17 16:11:17 +02:00
import 'package:objectbox/objectbox.dart';
abstract class DatabaseEvent {
const DatabaseEvent();
}
class ConnectedToDatabase extends DatabaseEvent {
final Store database;
const ConnectedToDatabase(this.database);
}
class DisconnectedFromDatabase extends DatabaseEvent {
const DisconnectedFromDatabase();
}