discontinuedPackage jet_cad_floor_plan has been discontinued and replaced by jet_cad_2d_plan.

SymbolComponent class

A symbol's identity and display data, attached to a definition's handle (spec 09 D3, R-2): a stable key (lower-case dotted, e.g. bed.double), the display name, a category, tags and an integer version. The same key and version is reused by a placement, a different version is copied beside it (decision 8).

Immutable and value-equal, tags compared in order; toJson keys are in a fixed (alphabetical) order. Not a parametric type: it is not in parametricCatalog, so the live-object rule and regeneration never see it (spec D1).

Lower-case key and tags are the library loader's duty, not enforced here.

Constructors

SymbolComponent({required String key, required String name, required String category, required List<String> tags, required int version})
Throws ArgumentError (not an assert: a release build must refuse too) when key is empty or version is below 1. tags is copied into an unmodifiable list.

Properties

category → String
final
hashCode → int
The hash code for this object.
no setteroverride
key → String
final
name → String
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
tags → List<String>
final
typeId → String
no setter
version → int
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, Object?>
toString() → String
A string representation of this object.
override

Operators

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

Static Methods

fromJson(Map<String, Object?> json) → SymbolComponent
register(ComponentRegistry registry) → void
Registers the type. Once per registry: register replaces the store for the type, so a second call drops every live symbol component.

Constants

componentTypeId → const String