PainterController constructor

PainterController({
  1. PainterSettings settings = const PainterSettings(),
  2. List<Drawable>? drawables = const [],
  3. 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));