FlutterPainter constructor
const
FlutterPainter({
- Key? key,
- required PainterController controller,
- DrawableCreatedCallback? onDrawableCreated,
- DrawableDeletedCallback? onDrawableDeleted,
- ValueChanged<
ObjectDrawable?> ? onSelectedObjectDrawableChanged, - 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);