drawShapeOnce property

bool get drawShapeOnce

Whether to draw shapes once or continuously from value.settings.shape directly.

Implementation

bool get drawShapeOnce => value.settings.shape.drawOnce;
set drawShapeOnce (bool drawOnce)

Whether to draw shapes once or continuously from value.settings.shape directly.

Setting this will notify all the listeners of this PainterController that they need to update (it calls notifyListeners). For this reason, this value should only be set between frames, e.g. in response to user actions, not during the build, layout, or paint phases.

Implementation

set drawShapeOnce(bool drawOnce) => value = value.copyWith(
        settings: value.settings.copyWith(
            shape: value.settings.shape.copyWith(
      drawOnce: drawOnce,
    )));