hive_repo 0.2.0 copy "hive_repo: ^0.2.0" to clipboard
hive_repo: ^0.2.0 copied to clipboard

outdated

Repositories classes to standardize access to hive boxes for user defined types

Repository functionalities on top of hive

Usage #

Just pass a box to the constructor and use the Repository and LazyRepository methods

import 'package:hive_repo/hive_repo.dart';

main() {

  Hive.init(Directory.systemTemp.path + '/test');
  Hive.registerAdapter(UserAdapter());

  final repository = Repository<User>(Hive.box<User>('_test_user'));

  final List<User> users = await repository.list();
}
0
likes
0
pub points
0%
popularity

Publisher

verified publishermsiviero.dev

Repositories classes to standardize access to hive boxes for user defined types

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

hive, quiver

More

Packages that depend on hive_repo