PainterController constructor
PainterController({
- PainterSettings settings = const PainterSettings(),
- List<
Drawable> ? drawables = const [], - BackgroundDrawable? background,
Create a PainterController.
The behavior of a FlutterPainter widget is controlled by settings
.
The controller can be initialized with a list of drawables
to be painted without user interaction.
It can also accept a background
to be painted.
Without it, the background will be transparent.
Implementation
PainterController({
PainterSettings settings = const PainterSettings(),
List<Drawable>? drawables = const [],
BackgroundDrawable? background,
}) : this.fromValue(PainterControllerValue(
settings: settings,
drawables: drawables ?? const [],
background: background));