GraphMarkSpec constructor
const
GraphMarkSpec({
- required String type,
- String y = '',
- String open = '',
- String high = '',
- String low = '',
- String close = '',
- Color color = const Color(0xFF2962FF),
- Color upColor = const Color(0xFF26A69A),
- Color downColor = const Color(0xFFEF5350),
- double width = 1.5,
- double fillOpacity = 0.18,
- bool fade = false,
- bool curved = false,
- double? overlay,
- String segmentBy = '',
- double dimInactive = 1,
- double endDot = 0,
- Color? endDotColor,
- bool pulse = false,
- String name = '',
- String? stack,
- double radius = 0,
- String colorField = '',
- List<
Color> colors = const [], - double inner = 0,
- double gap = 0,
- double startAngle = 0,
- bool labels = false,
- Color? fillTo,
- bool colored = true,
- double dots = 0,
- String center = '',
- String centerLabel = '',
Implementation
const GraphMarkSpec({
required this.type,
this.y = '',
this.open = '',
this.high = '',
this.low = '',
this.close = '',
this.color = const Color(0xFF2962FF),
this.upColor = const Color(0xFF26A69A),
this.downColor = const Color(0xFFEF5350),
this.width = 1.5,
this.fillOpacity = 0.18,
this.fade = false,
this.curved = false,
this.overlay,
this.segmentBy = '',
this.dimInactive = 1,
this.endDot = 0,
this.endDotColor,
this.pulse = false,
this.name = '',
this.stack,
this.radius = 0,
this.colorField = '',
this.colors = const [],
this.inner = 0,
this.gap = 0,
this.startAngle = 0,
this.labels = false,
this.fillTo,
this.colored = true,
this.dots = 0,
this.center = '',
this.centerLabel = '',
});