discontinuedPackage fluttersdk_artisan has been discontinued and replaced by dowel.

PluginsRegistry class final

Immutable value object representing the full contents of .artisan/plugins.json.

version is the schema version (currently 1). Future schema changes increment this; PluginsRegistryFile.read rejects any version above 1 with a FormatException so old tooling fails loudly rather than silently misinterpreting a newer format.

Constructors

PluginsRegistry({int version = 1, List<PluginEntry> plugins = const <PluginEntry>[]})
Creates a PluginsRegistry.
const
PluginsRegistry.empty()
Returns an empty registry at schema version 1.
factory
PluginsRegistry.fromJson(Map<String, dynamic> json)
Deserialises a PluginsRegistry from a JSON object map.
factory

Properties

hashCode → int
The hash code for this object.
no setterinherited
plugins → List<PluginEntry>
Ordered list of registered plugin entries.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
version → int
Schema version. Must be 1 for this release of the tooling.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
Serialises this registry to a JSON-compatible map.
toString() → String
A string representation of this object.
inherited

Operators

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