PlotBand constructor
PlotBand({
- bool isVisible = true,
- dynamic start,
- dynamic end,
- Color color = Colors.grey,
- double opacity = 1.0,
- Color borderColor = Colors.transparent,
- double borderWidth = 0,
- String? text,
- TextStyle? textStyle,
- bool isRepeatable = false,
- dynamic repeatEvery = 1,
- String? verticalTextPadding,
- String? horizontalTextPadding,
- dynamic repeatUntil,
- double? textAngle,
- bool shouldRenderAboveSeries = false,
- DateTimeIntervalType sizeType = DateTimeIntervalType.auto,
- List<
double> dashArray = const <double>[0, 0], - dynamic size,
- dynamic associatedAxisStart,
- dynamic associatedAxisEnd,
- TextAnchor verticalTextAlignment = TextAnchor.middle,
- TextAnchor horizontalTextAlignment = TextAnchor.middle,
- LinearGradient? gradient,
Creating an argument constructor of PlotBand class.
Implementation
// ignore: prefer_const_constructors_in_immutables
PlotBand(
{this.isVisible = true,
this.start,
this.end,
this.color = Colors.grey,
this.opacity = 1.0,
this.borderColor = Colors.transparent,
this.borderWidth = 0,
this.text,
TextStyle? textStyle,
this.isRepeatable = false,
this.repeatEvery = 1,
this.verticalTextPadding,
this.horizontalTextPadding,
this.repeatUntil,
this.textAngle,
this.shouldRenderAboveSeries = false,
this.sizeType = DateTimeIntervalType.auto,
this.dashArray = const <double>[0, 0],
this.size,
this.associatedAxisStart,
this.associatedAxisEnd,
this.verticalTextAlignment = TextAnchor.middle,
this.horizontalTextAlignment = TextAnchor.middle,
this.gradient})
: textStyle = textStyle ??
const TextStyle(
fontFamily: 'Roboto',
fontStyle: FontStyle.normal,
fontWeight: FontWeight.normal,
fontSize: 12);