hive_generator 0.4.0 hive_generator: ^0.4.0 copied to clipboard
Extension for Hive. Automatically generates TypeAdapters to store any class.
import 'package:hive/hive.dart';
@HiveType()
class Person {
@HiveField(1)
String name;
@HiveField(2)
int age;
@HiveField(3)
int _income;
@HiveField(4)
List<String> hobbies;
@HiveField(5)
List<Person> friends;
}