CurvedPolygonWaveform constructor
CurvedPolygonWaveform({
- required List<
double> samples, - required double height,
- required double width,
- Duration? maxDuration,
- Duration? elapsedDuration,
- Color activeColor = Colors.red,
- Color inactiveColor = Colors.blue,
- double strokeWidth = 1.0,
- PaintingStyle style = PaintingStyle.stroke,
- bool showActiveWaveform = true,
- bool absolute = false,
- bool invert = false,
Implementation
CurvedPolygonWaveform({
required super.samples,
required super.height,
required super.width,
super.maxDuration,
super.elapsedDuration,
this.activeColor = Colors.red,
this.inactiveColor = Colors.blue,
this.strokeWidth = 1.0,
this.style = PaintingStyle.stroke,
super.showActiveWaveform = true,
super.absolute = false,
super.invert = false,
}) : assert(strokeWidth >= 0, "strokeWidth can't be negative.");