AppstreamCollection constructor

AppstreamCollection({
  1. String version = '0.14',
  2. required String origin,
  3. String? architecture,
  4. int? priority,
  5. Iterable<AppstreamComponent> components = const [],
})

Creates a new Appstream collection.

Implementation

AppstreamCollection(
    {this.version = '0.14',
    required this.origin,
    this.architecture,
    this.priority,
    Iterable<AppstreamComponent> components = const []})
    : components = List<AppstreamComponent>.from(components);