ReferenceArea.verticalBand constructor

ReferenceArea.verticalBand({
  1. required double xMin,
  2. required double xMax,
  3. required double yStart,
  4. required double yEnd,
  5. Color color = Colors.blue,
  6. double opacity = 0.2,
  7. Color? borderColor,
  8. double borderWidth = 1,
  9. String? label,
  10. TextStyle? labelStyle,
})

Creates a vertical band area.

Implementation

factory ReferenceArea.verticalBand({
  required double xMin,
  required double xMax,
  required double yStart,
  required double yEnd,
  Color color = Colors.blue,
  double opacity = 0.2,
  Color? borderColor,
  double borderWidth = 1,
  String? label,
  TextStyle? labelStyle,
}) {
  return ReferenceArea(
    topLeft: Offset(xMin, yStart),
    bottomRight: Offset(xMax, yEnd),
    color: color,
    opacity: opacity,
    borderColor: borderColor,
    borderWidth: borderWidth,
    showLabel: label != null,
    label: label,
    labelStyle: labelStyle,
  );
}