Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
238 B
1
Indexable
Never
import 'package:hive/hive.dart';
part 'person.g.dart';
@HiveType(typeId: 1)
class Person {
  @HiveField(0)
  final String name;

  @HiveField(1)
  final String country;
  Person({
    required this.name,
    required this.country,
  });
}