Brush2D constructor

const Brush2D({
  1. Key? key,
  2. required Widget child,
  3. void onBrushStart(
    1. Brush2DExtent extent
    )?,
  4. void onBrush(
    1. Brush2DExtent extent
    )?,
  5. void onBrushEnd(
    1. Brush2DExtent extent
    )?,
  6. void onBrushClear()?,
  7. Brush2DExtent? initialExtent,
  8. Color overlayColor = const Color(0x20000000),
  9. Color borderColor = const Color(0x80000000),
  10. double borderWidth = 1.0,
  11. double minSelectionSize = 5.0,
  12. bool movable = true,
  13. bool resizable = true,
  14. double handleSize = 10.0,
  15. bool clearOnDoubleTap = true,
})

Creates a Brush2D widget.

Implementation

const Brush2D({
  super.key,
  required this.child,
  this.onBrushStart,
  this.onBrush,
  this.onBrushEnd,
  this.onBrushClear,
  this.initialExtent,
  this.overlayColor = const Color(0x20000000),
  this.borderColor = const Color(0x80000000),
  this.borderWidth = 1.0,
  this.minSelectionSize = 5.0,
  this.movable = true,
  this.resizable = true,
  this.handleSize = 10.0,
  this.clearOnDoubleTap = true,
});