ArcaneFieldMapProvider<T> constructor

ArcaneFieldMapProvider<T>({
  1. required T defaultValue,
  2. required Map<String, dynamic> storage,
})

Constructs an ArcaneFieldMapProvider instance with the specified default value and storage map.

The defaultValue serves as a fallback for missing keys, while storage provides the persistent map for get/set operations. Initializes the inherited BehaviorSubject indirectly through the base class. Usage example:

final provider = ArcaneFieldMapProvider<String>(
  defaultValue: '',
  storage: {'user': {'name': 'Default Name'}},
);
await provider.setValue('user.name', 'John Doe');
String name = await provider.getValue('user.name'); // Returns 'John Doe'

Implementation

ArcaneFieldMapProvider({required super.defaultValue, required this.storage});