CartesianCanvas constructor
const
CartesianCanvas({
- Key? key,
- List<
CartesianItem> items = const [], - List<
WidgetItem> widgetItems = const [], - CartesianCanvasTheme theme = CartesianCanvasTheme.light,
- CartesianCanvasController? controller,
- bool showControls = true,
- bool showLegend = true,
- String? title,
- double initialScale = 1.0,
- bool initialShowGrid = true,
- bool enableFreehandDrawing = false,
- Color freehandColor = Colors.black,
- double freehandWidth = 2.0,
- bool isFullScreen = false,
- void onFreehandStroke()?,
- void onTap()?,
- void onLongPress()?,
Implementation
const CartesianCanvas({
super.key,
this.items = const [],
this.widgetItems = const [],
this.theme = CartesianCanvasTheme.light,
this.controller,
this.showControls = true,
this.showLegend = true,
this.title,
this.initialScale = 1.0,
this.initialShowGrid = true,
this.enableFreehandDrawing = false,
this.freehandColor = Colors.black,
this.freehandWidth = 2.0,
this.isFullScreen = false,
this.onFreehandStroke,
this.onTap,
this.onLongPress,
});