DrawingToolManager class

Constructors

DrawingToolManager.new()

Properties

currentColor Color
no setter
currentDrawingPosition Offset?
no setter
currentDrawingTool DrawingTool?
no setter
currentStrokeWidth double
no setter
currentToolType DrawingToolType?
no setter
hashCode int
The hash code for this object.
no setterinherited
modeManager DrawingModeManager
no setter
onDrawingPositionChanged ValueChanged<Offset?>?
getter/setter pair
onToolsChanged VoidCallback?
getter/setter pair
onToolSelected ValueChanged<DrawingTool?>?
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
selectedTool DrawingTool?
no setter
tools List<DrawingTool>
no setter

Methods

cancelDrawing() → void
clearAllTools() → void
clearSelection() → void
deleteSelectedTool() → void
deleteTool(String id) → void
deserializeTools(List<Map<String, dynamic>> data) → void
drawTools(Canvas canvas, Size size, double scaleX, double scrollX, double getX(double), double getY(double)) → void
finishDrawing() → void
getCrosshairPriceText(double price, int fixedLength) String?
getCrosshairTimeText(DateTime? time) String?
getToolsByType(DrawingToolType type) List<DrawingTool>
moveSelectedTool(Offset delta) → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
selectTool(Offset point) → void
serializeTools() List<Map<String, dynamic>>
setCurrentColor(Color color) → void
setCurrentStrokeWidth(double width) → void
setCurrentToolType(DrawingToolType? type) → void
setToolVisibility(String id, bool visible) → void
startDrawing(Offset point, {List<KLineEntity>? kLineData, double? scaleX, double? scrollX, double getX(double)?, double getY(double)?, double getPriceFromY(double)?, Rect? chartRect}) → void
toString() String
A string representation of this object.
inherited
updateDrawing(Offset point, {List<KLineEntity>? kLineData, double? scaleX, double? scrollX, double getX(double)?, double getY(double)?, double getPriceFromY(double)?, Rect? chartRect}) → void
updateToolProperties(String id, Map<String, dynamic> properties) → void

Operators

operator ==(Object other) bool
The equality operator.
inherited