getUserPreferencesSync method

Map<String, dynamic>? getUserPreferencesSync([
  1. String path = 'prefs.plist'
])

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;
  }
}