hive enum flutter code example
Example: hive regiter adapter enum
Hive.registerAdapter(MediaTypesAdapter()); // <- register the adapter where you have the others registred
// mediaData.dart <- file
import 'package:hive/hive.dart';
part 'mediaData.g.dart';
(typeId: 22)
enum MediaTypes {
(0)
Photo,
(1)
Video,
}