Snap class Null safety

Describes a snap package.

Constructors

Snap({List<SnapApp> apps = const [], String channel = '', Map<String, SnapChannel> channels = const {}, List<String> commonIds = const [], String? contact = '', String description = '', int? downloadSize, String id = '', int? installedSize, String? license, List<SnapMedia> media = const [], String name = '', SnapPublisher? publisher, String revision = '', String? storeUrl, String summary = '', String title = '', List<String> tracks = const [], String type = '', String version = '', String? website})
const

Properties

apps List<SnapApp>
Apps this snap provides.
final
channel String
Channel this snap is tracking.
final
channels Map<String, SnapChannel>
Channels available for this snap.
final
commonIds List<String>
Common IDs this snap contains.
final
contact String?
Contact URL.
final
description String
Multi line description.
final
downloadSize int?
Download size in bytes.
final
hashCode int
The hash code for this object. [...]
read-only, inherited
id String
Unique ID for this snap.
final
installedSize int?
Installed size in bytes.
final
license String?
Package license.
final
media List<SnapMedia>
Media associated with this snap.
final
name String
Unique name for this snap. Use title for displaying.
final
publisher SnapPublisher?
Publisher information.
final
revision String
Revision of this snap.
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
storeUrl String?
URL linking to the snap store page on this snap.
final
summary String
Single line summary.
final
title String
Title of this snap.
final
tracks List<String>
Tracks this snap uses.
final
type String
Type of snap.
final
version String
Version of this snap.
final
website String?
Website URL.
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