PolygonWaveform constructor
PolygonWaveform({
- Key? key,
- required List<
double> samples, - required double height,
- required double width,
- Duration? maxDuration,
- Duration? elapsedDuration,
- Color activeColor = Colors.red,
- Color inactiveColor = Colors.blue,
- Gradient? activeGradient,
- Gradient? inactiveGradient,
- PaintingStyle style = PaintingStyle.stroke,
- bool showActiveWaveform = true,
- bool absolute = false,
- bool invert = false,
Implementation
PolygonWaveform({
super.key,
required super.samples,
required super.height,
required super.width,
super.maxDuration,
super.elapsedDuration,
this.activeColor = Colors.red,
this.inactiveColor = Colors.blue,
this.activeGradient,
this.inactiveGradient,
this.style = PaintingStyle.stroke,
super.showActiveWaveform = true,
super.absolute = false,
super.invert = false,
});