shapeFactory property

ShapeFactory<ShapeDrawable>? get shapeFactory

The factory for the shape to be drawn from value.settings.shape directly.

Implementation

ShapeFactory? get shapeFactory => value.settings.shape.factory;
set shapeFactory (ShapeFactory<ShapeDrawable>? factory)

The factory for the shape to be drawn 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 shapeFactory(ShapeFactory? factory) => value = value.copyWith(
        settings: value.settings.copyWith(
            shape: value.settings.shape.copyWith(
      factory: factory,
    )));