getUserPreferencesSync method
Synchronously returns a Map
of user defaults from the workflow's prefs.plist
file.
Implementation
Map<String, dynamic>? getUserPreferencesSync([String path = 'prefs.plist']) {
try {
return _mapUserDefaults(PlistParser().parseFileSync(path));
} on NotFoundException {
return null;
}
}