messagesBoxProvider top-level property

Provider<Box<RuutMessage>> messagesBoxProvider
final

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

Implementation

final messagesBoxProvider = Provider<Box<RuutMessage>>((ref) {
  return Hive.box<RuutMessage>(
      RuutMessagesBoxNames.MESSAGES.toString());
});