userBoxProvider top-level property

Provider<Box<RuutUser>> userBoxProvider
final

Provides hive box for RuutUser object, which is used when persistence is enabled

Implementation

final userBoxProvider = Provider<Box<RuutUser>>((ref) {
  return Hive.box<RuutUser>(RuutUserBoxNames.USERS.toString());
});