toPathD method

String toPathD()

The current shape as an SVG d attribute.

At rest this is the target's canonical d; in flight it is the polyline the plan is producing, quantized to 2 decimals — byte for byte what the web bindings would have written to the element. Nothing in the Flutter render path uses it; it is here for interop and for asserting that this implementation agrees with the TypeScript one.

Implementation

String toPathD() {
  final o = _out;
  final cl = _closed;
  if (_rest || o == null || cl == null) return canonicalD(_target);
  return serialize(o, cl);
}