messageToClientInstanceBoxProvider top-level property

Provider<Box<String>> messageToClientInstanceBoxProvider
final

Provides hive box to store relations between chatwoot client instance and messages, which is used when persistence is enabled. Client instances are distinguished using baseurl and inboxIdentifier

Implementation

final messageToClientInstanceBoxProvider = Provider<Box<String>>((ref) {
  return Hive.box<String>(
      ChatwootMessagesBoxNames.MESSAGES_TO_CLIENT_INSTANCE_KEY.toString());
});