ChartLegend constructor

ChartLegend({
  1. String? type,
  2. String? id,
  3. bool show = true,
  4. int? zlevel,
  5. int? z,
  6. String? left,
  7. String? top,
  8. String? right,
  9. String? bottom,
  10. String? orient,
  11. String? align,
  12. List? padding,
  13. double? itemGap,
  14. double? itemWidth,
  15. double? itemHeight,
  16. dynamic formatter,
  17. dynamic selectedMode,
  18. Map<String, bool>? selected,
  19. String? icon,
  20. ChartTextStyle? textStyle,
  21. String backgroundColor = 'transparent',
  22. String borderColor = 'black',
  23. double? borderWidth,
  24. double? borderRadius,
  25. double? shadowBlur,
  26. String? shadowColor,
  27. double? shadowOffsetX,
  28. double? shadowOffsetY,
  29. int? scrollDataIndex,
  30. String? pageButtonPosition,
  31. String pageIconsColor = 'black',
  32. String pageIconsInactiveColor = 'grey',
  33. String textColor = 'black',
  34. double fontSize = 12,
  35. double iconSize = 10,
  36. List<String> data = const <String>[],
})

Implementation

ChartLegend({
  this.type,
  this.id,
  this.show = true,
  this.zlevel,
  this.z,
  this.left,
  this.top,
  this.right,
  this.bottom,
  this.orient,
  this.align,
  this.padding,
  this.itemGap,
  this.itemWidth,
  this.itemHeight,
  this.formatter,
  this.selectedMode,
  this.selected,
  this.icon,
  this.textStyle,
  this.backgroundColor = 'transparent',
  this.borderColor = 'black',
  this.borderWidth,
  this.borderRadius,
  this.shadowBlur,
  this.shadowColor,
  this.shadowOffsetX,
  this.shadowOffsetY,
  this.scrollDataIndex,
  this.pageButtonPosition,
  this.pageIconsColor = 'black',
  this.pageIconsInactiveColor = 'grey',
  this.textColor = 'black',
  this.fontSize = 12,
  this.iconSize = 10,
  List<String> data = const <String>[],
});