PluginRef class final

What a project uses of a hosted plugin: the channel it follows, an optional major pin, and the version (and its digest) the editor built and previewed with. JSON: {"id": "codelessly.charts", "channel": "stable", "pin": 2, "version": 14, "semver": "2.3.1", "digest": "9f2c…"}.

Annotations
  • @immutable

Constructors

PluginRef({required String id, ManagedChannel channel = ManagedChannel.stable, int? pin, int version = 0, String semver = '', String digest = ''})
const

Properties

channel → ManagedChannel
final
digest → String
final
hashCode → int
The hash code for this object.
no setteroverride
id → String
final
pin → int?
A major the project stays on; null: the major of semver.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
semver → String
final
vendor → String
The type-name prefix this plugin's types share (codelessly for codelessly.charts): a node type codelessly.sparkline resolves to it.
no setter
version → int
The version number (plugins/{id}/versions/{n}) and its semver and payload digest, as published.
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.
override

Operators

operator ==(Object other) → bool
The equality operator.
override

Static Methods

fromJson(Object? json) → PluginRef?