Brush2D constructor
const
Brush2D({
- Key? key,
- required Widget child,
- void onBrushStart(
- Brush2DExtent extent
- void onBrush(
- Brush2DExtent extent
- void onBrushEnd(
- Brush2DExtent extent
- void onBrushClear()?,
- Brush2DExtent? initialExtent,
- Color overlayColor = const Color(0x20000000),
- Color borderColor = const Color(0x80000000),
- double borderWidth = 1.0,
- double minSelectionSize = 5.0,
- bool movable = true,
- bool resizable = true,
- double handleSize = 10.0,
- 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,
});