Brush constructor

const Brush({
  1. Key? key,
  2. required Widget child,
  3. void onBrushStart(
    1. BrushExtent extent
    )?,
  4. void onBrush(
    1. BrushExtent extent
    )?,
  5. void onBrushEnd(
    1. BrushExtent extent
    )?,
  6. void onBrushClear()?,
  7. BrushExtent? 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 Brush widget.

Implementation

const Brush({
  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,
});