discontinuedPackage jet_cad_floor_plan has been discontinued and replaced by jet_cad_2d_plan.

operator == method

  1. @override
bool operator ==(
  1. Object other
)
override

Value-equal, exactly (stored values, CLAUDE.md), but not uniformly:

  • the ends and the kind with ==, so a FixedEnd's coordinates are compared with double ==: -0.0 and 0.0 are the same coordinate, and a NaN coordinate equals nothing;
  • the offset with compareTo(other.offset) == 0 (D2, R-2), because its sign bit is its side: -0.0 differs from +0.0 (where -0.0 == 0.0 is true in Dart), and a NaN offset equals itself.

Implementation

@override
bool operator ==(Object other) =>
    other is DimensionParams &&
    other.a == a &&
    other.b == b &&
    other.kind == kind &&
    other.offset.compareTo(offset) == 0;