discontinuedPackage jet_cad_floor_plan has been discontinued and replaced by jet_cad_2d_plan.

cancel method

  1. @override
void cancel(
  1. ToolContext ctx
)

Every cancel path (Escape with a shape pending never happens here; a switch to another tool, the layer's deactivate and dispose) clears the notice and the preview (R-29).

Implementation

@override
void cancel(ToolContext ctx) {
  _preview = const [];
  if (!_disposed) _notice.value = null;
  super.cancel(ctx);
}