getEvents method

Future<List<EventSpa>> getEvents()

Implementation

Future<List<EventSpa>> getEvents() async {
  final box = Hive.box<EventSpa>(boxName);
  return box.values.toList();
}