PluginVersion class final
One immutable release of a hosted plugin (plugins/{id}/versions/{n}),
stored as a managed component version is: {"schema": 3, "id", "version", "semver", "minSdk", "payload", "digest", "changelog", "createdAt"}, where
payload is the package's JSON text and digest the sha256 hex of its
UTF-8 bytes.
- Annotations
Constructors
- PluginVersion({required String id, required int version, required String payload, String semver = '', String minSdk = '', String digest = '', String changelog = '', int? createdAt})
-
const
- PluginVersion.of(PluginPackage package, {required int version, String digest = ''})
-
packageas a release: its payload text encoded now (digestis the caller's to set, sha256 of payload).factory
Properties
- changelog → String
-
final
- createdAt → int?
-
final
- digest → String
-
The sha256 hex digest of payload's UTF-8 bytes.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
final
- major → int
-
no setter
- minSdk → String
-
final
- package → PluginPackage?
-
The package; null when the payload isn't one.
no setter
- payload → String
-
The package's JSON text: the bytes digest is over.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- semver → String
-
final
- version → int
-
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Json -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
fromJson(
Object? json, {String? id, int? version}) → PluginVersion?