RudderDBEncryption class

A plugin that provides database encryption functionality for RudderStack Flutter SDK.

This plugin allows you to encrypt the local database used by RudderStack SDK to store events before they are sent to analytics destinations.

Example usage:

final dbEncryption = RudderDBEncryption(true, 'your-encryption-key');

Pass the dbEncryption configuration to the RudderStack SDK before initialization.

Constructors

RudderDBEncryption(dynamic enabled, dynamic key)
Creates a new instance of RudderDBEncryption.

Properties

enabled bool
Whether database encryption is enabled.
no setter
hashCode int
The hash code for this object.
no setterinherited
key String
The encryption key used for database encryption.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addDBEncryptionToConfig() → void
Adds the database encryption configuration to the RudderStack SDK. This method is called internally by the RudderStack SDK to apply the encryption settings.
getMap() Map
Returns a map representation of the encryption configuration.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited