getConfiguration function
Retrieves the configuration from the storage. Throws an exception if the configuration is not defined.
Implementation
Future<Map<String, dynamic>> getConfiguration() async {
final config = await getStorageItem(key: 'sgm_config');
if (config == null) {
throw Exception('Error: Configuration is not defined.');
}
return config;
}