GraphMarkSpec constructor

const GraphMarkSpec({
  1. required String type,
  2. String y = '',
  3. String open = '',
  4. String high = '',
  5. String low = '',
  6. String close = '',
  7. Color color = const Color(0xFF2962FF),
  8. Color upColor = const Color(0xFF26A69A),
  9. Color downColor = const Color(0xFFEF5350),
  10. double width = 1.5,
  11. double fillOpacity = 0.18,
  12. bool fade = false,
  13. bool curved = false,
  14. double? overlay,
  15. String segmentBy = '',
  16. double dimInactive = 1,
  17. double endDot = 0,
  18. Color? endDotColor,
  19. bool pulse = false,
  20. String name = '',
  21. String? stack,
  22. double radius = 0,
  23. String colorField = '',
  24. List<Color> colors = const [],
  25. double inner = 0,
  26. double gap = 0,
  27. double startAngle = 0,
  28. bool labels = false,
  29. Color? fillTo,
  30. bool colored = true,
  31. double dots = 0,
  32. String center = '',
  33. 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 = '',
});