getUserPreferences method

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

Returns a Map of user defaults from the workflow's prefs.plist file.

Implementation

Future<Map<String, dynamic>?> getUserPreferences([
  String path = 'prefs.plist',
]) async {
  try {
    return _mapUserDefaults(await PlistParser().parseFile(path));
  } on NotFoundException {
    return null;
  }
}