BipolarChart<T> constructor

const BipolarChart<T>({
  1. Key? key,
  2. Widget? child,
  3. Color upperColor = Colors.red,
  4. Color fairColor = Colors.black45,
  5. Color lowerColor = Colors.green,
  6. double strokeWidth = 1,
  7. PaintingStyle upperStyle = PaintingStyle.fill,
  8. PaintingStyle fairStyle = PaintingStyle.fill,
  9. PaintingStyle lowerStyle = PaintingStyle.fill,
  10. Color crossLineColor = Colors.red,
  11. double crossLineWidth = 0.5,
  12. required List<double> transform(
    1. List<T> values
    ),
  13. required BarStyle transformBarStyle(
    1. T item
    ),
  14. TextStyle textStyle = const TextStyle(color: Colors.black, fontSize: 8),
  15. double paddingTop = 0,
  16. bool showText = true,
})

Implementation

const BipolarChart({
  super.key,
  super.child,
  super.upperColor = Colors.red,
  super.fairColor = Colors.black45,
  super.lowerColor = Colors.green,
  super.strokeWidth = 1,
  super.upperStyle = PaintingStyle.fill,
  super.fairStyle = PaintingStyle.fill,
  super.lowerStyle = PaintingStyle.fill,
  super.crossLineColor = Colors.red,
  super.crossLineWidth = 0.5,
  required super.transform,
  required super.transformBarStyle,
  super.textStyle,
  super.paddingTop,
  super.showText,
});