hive_repo

Last updated:

0 purchases

hive_repo Image
hive_repo Images
Add to Cart

Description:

hive repo

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();
}
copied to clipboard

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.