AppstreamComponent constructor

const AppstreamComponent({
  1. required String id,
  2. required AppstreamComponentType type,
  3. required String? package,
  4. required Map<String, String> name,
  5. required Map<String, String> summary,
  6. Map<String, String> description = const {},
  7. Map<String, String> developerName = const {},
  8. String? projectLicense,
  9. String? projectGroup,
  10. List<AppstreamIcon> icons = const [],
  11. List<AppstreamUrl> urls = const [],
  12. List<String> categories = const [],
  13. Map<String, List<String>> keywords = const {},
  14. List<AppstreamScreenshot> screenshots = const [],
  15. List<String> compulsoryForDesktops = const [],
  16. List<AppstreamRelease> releases = const [],
  17. List<AppstreamProvides> provides = const [],
  18. List<AppstreamLaunchable> launchables = const [],
  19. List<AppstreamLanguage> languages = const [],
  20. Map<String, Map<String, AppstreamContentRating>> contentRatings = const {},
})

Creates a new Appstream component.

Implementation

const AppstreamComponent(
    {required this.id,
    required this.type,
    required this.package,
    required this.name,
    required this.summary,
    this.description = const {},
    this.developerName = const {},
    this.projectLicense,
    this.projectGroup,
    this.icons = const [],
    this.urls = const [],
    this.categories = const [],
    this.keywords = const {},
    this.screenshots = const [],
    this.compulsoryForDesktops = const [],
    this.releases = const [],
    this.provides = const [],
    this.launchables = const [],
    this.languages = const [],
    this.contentRatings = const {}});