toMap method

  1. @override
Map<String, String> toMap()
override

Converts the options into a map representation.

This method is intended to be overridden by subclasses to provide a specific mapping of their configuration properties.

Returns:

  • A map containing the configuration options.

Implementation

@override
Map<String, String> toMap() => <String, String>{
      'encryptedSharedPreferences': '$_encryptedSharedPreferences',
      'resetOnError': '$_resetOnError',
      'keyCipherAlgorithm': _keyCipherAlgorithm.name,
      'storageCipherAlgorithm': _storageCipherAlgorithm.name,
      'sharedPreferencesName': sharedPreferencesName ?? '',
      'preferencesKeyPrefix': preferencesKeyPrefix ?? '',
    };