FlutterPainter constructor

const FlutterPainter({
  1. Key? key,
  2. required PainterController controller,
  3. DrawableCreatedCallback? onDrawableCreated,
  4. DrawableDeletedCallback? onDrawableDeleted,
  5. ValueChanged<ObjectDrawable?>? onSelectedObjectDrawableChanged,
  6. ValueChanged<PainterSettings>? onPainterSettingsChanged,
})

Creates a FlutterPainter with the given controller and optional callbacks.

Implementation

const FlutterPainter(
    {Key? key,
    required this.controller,
    this.onDrawableCreated,
    this.onDrawableDeleted,
    this.onSelectedObjectDrawableChanged,
    this.onPainterSettingsChanged})
    : _builder = _defaultBuilder,
      super(key: key);