Snap class
Describes a snap package.
- Annotations
-
- @immutable
- @JsonSerializable()
Constructors
-
Snap({List<
SnapApp> apps = const [], String? base, List<SnapCategory> categories = const [], String channel = '', Map<String, SnapChannel> channels = const {}, List<String> commonIds = const [], SnapConfinement confinement = SnapConfinement.unknown, String? contact = '', String description = '', bool devmode = false, int? downloadSize, DateTime? hold, String id = '', DateTime? installDate, int? installedSize, bool jailmode = false, String? license, List<SnapMedia> media = const [], String? mountedFrom, required String name, bool private = false, SnapPublisher? publisher, String revision = '', SnapStatus status = SnapStatus.unknown, String? storeUrl, String summary = '', String? title = '', String? trackingChannel, List<String> tracks = const [], String type = '', String version = '', String? website}) -
const
-
Snap.fromJson(Map<
String, dynamic> json) -
factory
Properties
-
apps
→ List<
SnapApp> -
Apps this snap provides.
final
- base → String?
-
The base snap this snap uses.
final
-
categories
→ List<
SnapCategory> -
Categories this snap belongs to.
final
- channel → String
-
The channel this snap is from, e.g. "stable".
final
-
channels
→ Map<
String, SnapChannel> -
Channels available for this snap.
final
-
commonIds
→ List<
String> -
Common IDs this snap contains.
final
- confinement → SnapConfinement
-
The confinement this snap is using.
final
- contact → String?
-
Contact URL.
final
- description → String
-
Multi line description.
final
- devmode → bool
-
True if this snap is running in developer mode.
final
- downloadSize → int?
-
Download size in bytes.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- hold → DateTime?
-
The date this snap will re-enable autmatic refreshing or null if no hold is present.
final
- id → String
-
Unique ID for this snap.
final
- installDate → DateTime?
-
The date this snap was installed.
final
- installedSize → int?
-
Installed size in bytes.
final
- jailmode → bool
-
True if this snap is running in enforced confinement (jail) mode.
final
- license → String?
-
Package license.
final
-
media
→ List<
SnapMedia> -
Media associated with this snap.
final
- mountedFrom → String?
-
The path this snap is mounted from, which is a .snap file for installed snaps and a directory for snaps in try mode.
final
- name → String
-
Unique name for this snap. Use title for displaying.
final
- private → bool
-
True if this snap is only available to the developer.
final
- publisher → SnapPublisher?
-
Publisher information.
final
- revision → String
-
Revision of this snap.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- status → SnapStatus
-
The current status of this snap.
final
- 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
- trackingChannel → String?
-
The channel that updates will be installed from, e.g. "stable".
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 nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override