AppstreamCollection class Null safety

A collection of Appstream components.

Constructors

AppstreamCollection({String version = '0.14', required String origin, String? architecture, int? priority, Iterable<AppstreamComponent> components = const []})
Creates a new Appstream collection.
AppstreamCollection.fromXml(String xml)
Decodes an Appstream collection in XML format.
factory
AppstreamCollection.fromYaml(String yaml)
Decodes an Appstream collection in YAML format.
factory

Properties

architecture String?
The architecture these components are for, e.g. 'arm64'.
final
components List<AppstreamComponent>
The components in this collection.
final
hashCode int
The hash code for this object. [...]
read-only, inherited
origin String
The repository these components come from, e.g. 'ubuntu-hirsute-main'
final
priority int?
The priorization of this metadata file over other metadata.
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
version String
The Appstream version these components comply with.
final

Methods

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

Operators

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