WindowPaintValue constructor

WindowPaintValue({
  1. String mode = 'pan_zoom',
  2. Color color = const Color(0xFF000000),
  3. List<DrawObject>? objects,
  4. Color colorBeforeSelection = const Color(0x00000000),
  5. int selectedObjectIndex = -1,
})

Creates information for painting a widget.

The mode and color arguments must not be null, but each have default values.

Implementation

WindowPaintValue({
  this.mode = 'pan_zoom',
  this.color = const Color(0xFF000000),
  List<DrawObject>? objects,
  this.colorBeforeSelection = const Color(0x00000000),
  this.selectedObjectIndex = -1,
}) : objects = objects ?? [];