# getFromPrefs method

List<QuickActionItem> getFromPrefs()

## Implementation

    List<QuickActionItem> getFromPrefs() {
      List<QuickActionItem> quickActions = [];
      // Get lists
      List<String> quickSettingsTitles =
          prefs.getStringList('quickSettingsTitles') ?? [];
      List<String> quickSettingsContents =
          prefs.getStringList('quickSettingsContents') ?? [];

      // Add to list
      for (int i = 0; i < quickSettingsTitles.length; i++) {
        String name = quickSettingsTitles[i];
        String? quickSettingsMetadata =
            prefs.getString('quickSettingsMeta_$name');
        if (quickSettingsMetadata != null) {
          try {
            QuickActionItem item = QuickActionItem.fromYamlString(
                quickSettingsMetadata,
                content: quickSettingsContents[i]);
            // Parse yaml from metadata
            quickActions.add(item);
          } catch (e) {
            if (kDebugMode) {
              print(e);
            }
          }
        } else {
          // For local quick actions
          quickActions.add(
              QuickActionItem(name: name, content: quickSettingsContents[i]));
        }
      }

      return quickActions;
    }