discontinuedPackage jet_cad_floor_plan has been discontinued and replaced by jet_cad_2d_plan.

copyWith method

RoomParams copyWith({
  1. double? seedX,
  2. double? seedY,
  3. String? name,
  4. Object? label = _keep,
  5. Object? color = _keep,
})

label takes a (double, double) or null (auto), color a name or null (none); left out, each is kept.

Implementation

RoomParams copyWith(
        {double? seedX,
        double? seedY,
        String? name,
        Object? label = _keep,
        Object? color = _keep}) =>
    RoomParams(seedX ?? this.seedX, seedY ?? this.seedY, name ?? this.name,
        label:
            identical(label, _keep) ? this.label : label as (double, double)?,
        color: identical(color, _keep) ? this.color : color as String?);