BrushX constructor

const BrushX({
  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 BrushX widget.

Implementation

const BrushX({
  super.key,
  required super.child,
  super.onBrushStart,
  super.onBrush,
  super.onBrushEnd,
  super.onBrushClear,
  super.initialExtent,
  super.overlayColor,
  super.borderColor,
  super.borderWidth,
  super.minSelectionSize,
  super.movable,
  super.resizable,
  super.handleSize,
  super.clearOnDoubleTap,
});