ReferenceArea.verticalBand constructor
ReferenceArea.verticalBand({})
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,
);
}