ReferenceArea.horizontalBand constructor
ReferenceArea.horizontalBand({})
Creates a horizontal band area.
Implementation
factory ReferenceArea.horizontalBand({
required double yMin,
required double yMax,
required double xStart,
required double xEnd,
Color color = Colors.blue,
double opacity = 0.2,
Color? borderColor,
double borderWidth = 1,
String? label,
TextStyle? labelStyle,
}) {
return ReferenceArea(
topLeft: Offset(xStart, yMin),
bottomRight: Offset(xEnd, yMax),
color: color,
opacity: opacity,
borderColor: borderColor,
borderWidth: borderWidth,
showLabel: label != null,
label: label,
labelStyle: labelStyle,
);
}