freeStyleFactory property

FreeStyleFactory<PathDrawable>? get freeStyleFactory

The factory used to create custom free-style drawables.

Implementation

FreeStyleFactory? get freeStyleFactory => value.settings.freeStyle.factory;
set freeStyleFactory (FreeStyleFactory<PathDrawable>? factory)

The factory used to create custom free-style drawables.

Set this to null to restore the built-in free-style drawable. Setting this value notifies the listeners of this PainterController.

Implementation

set freeStyleFactory(FreeStyleFactory? factory) => value = value.copyWith(
  settings: value.settings.copyWith(
    freeStyle: value.settings.freeStyle.copyWith(factory: factory),
  ),
);