AppstreamComponent class

Metadata about a component (application, font etc).

Constructors

AppstreamComponent({required String id, required AppstreamComponentType type, required String? package, required Map<String, String> name, required Map<String, String> summary, Map<String, String> description = const {}, Map<String, String> developerName = const {}, String? projectLicense, String? projectGroup, List<AppstreamIcon> icons = const [], List<AppstreamUrl> urls = const [], List<String> categories = const [], Map<String, List<String>> keywords = const {}, List<AppstreamScreenshot> screenshots = const [], List<String> compulsoryForDesktops = const [], List<AppstreamRelease> releases = const [], List<AppstreamProvides> provides = const [], List<AppstreamLaunchable> launchables = const [], List<AppstreamLanguage> languages = const [], Map<String, Map<String, AppstreamContentRating>> contentRatings = const {}})
Creates a new Appstream component.
const

Properties

categories List<String>
Categories this component fits.
final
compulsoryForDesktops List<String>
Desktops that require this component, e.g. 'GNOME'
final
contentRatings Map<String, Map<String, AppstreamContentRating>>
Content ratings for this package, keyed by content rating system name. e.g. {'oars-1.0': {'drugs-alcohol': AppstreamContentRating.moderate, 'language-humor': AppstreamContentRating.mild}}
final
description Map<String, String>
Long description of the component, keyed by language.
final
developerName Map<String, String>
The developer or project responsible for this project, keyed by langauge.
final
hashCode int
The hash code for this object.
no setterinherited
icons List<AppstreamIcon>
Icons for this component.
final
id String
Unique ID for this component.
final
keywords Map<String, List<String>>
Search keywords for this component, keyed by language.
final
languages List<AppstreamLanguage>
Languages this component is available in.
final
launchables List<AppstreamLaunchable>
Things that can be launched from this component.
final
name Map<String, String>
Human readable name of the component, keyed by language.
final
package String?
The name of the package this component is provided by.
final
projectGroup String?
Umbrella project this component is part of, e.g. 'GNOME'.
final
projectLicense String?
The license this project is under
final
provides List<AppstreamProvides>
Things this component provides.
final
releases List<AppstreamRelease>
Releases for this component.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
screenshots List<AppstreamScreenshot>
Screenshots of this component.
final
summary Map<String, String>
Short summary of the component, keyed by language.
final
type AppstreamComponentType
Type of component.
final
urls List<AppstreamUrl>
Web links for this component.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited