discontinuedPackage jet_cad_floor_plan has been discontinued and replaced by jet_cad_2d_plan.

RoomParams class final

A room's parameters (spec 10 D2), in the room group's local space, mm.

  • seedX, seedY: the clicked point, stored where clicked and never re-seated;
  • name: the name label's string;
  • label: null (auto) or the label anchor's offset from the pole of inaccessibility (D10);
  • color: null (none) or a palette name (plan colours spec PC-3).

Value-equal with exact == on every field: stored values. Stores no handle. fromJson accepts anything well-typed: a non-finite seed traces as Unbounded (D8), and a label with a non-finite component is treated as null by RoomType.generate.

Constructors

RoomParams(double seedX, double seedY, String name, {(double, double)? label, String? color})
const

Properties

color → String?
The room's colour (plan colours spec PC-3): a palette name, or null for none. Kept as read, known or not; colorValue is the entry.
final
colorValue → FloorPlanColor?
The palette entry color names, or null for none and for a name this release does not know (drawn as no colour, PC-1).
no setter
hashCode → int
The hash code for this object.
no setteroverride
label → (double, double)?
final
name → String
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
seed → Vector2
no setter
seedX → double
final
seedY → double
final
typeId → String
no setter

Methods

copyWith({double? seedX, double? seedY, String? name, Object? label = _keep, Object? color = _keep}) → RoomParams
label takes a (double, double) or null (auto), color a name or null (none); left out, each is kept.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, Object?>
The keys seed, name, label, color, in that order, all four always written (08 D6's one-shape rule): label and color are null when unset.
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) → RoomParams
Throws on a missing seed or name, or a value of the wrong type; a missing color (a schema 9 room) reads as null.

Constants

componentTypeId → const String