PolygonWaveform constructor

PolygonWaveform({
  1. Key? key,
  2. required List<double> samples,
  3. required double height,
  4. required double width,
  5. Duration? maxDuration,
  6. Duration? elapsedDuration,
  7. Color activeColor = Colors.red,
  8. Color inactiveColor = Colors.blue,
  9. Gradient? activeGradient,
  10. Gradient? inactiveGradient,
  11. PaintingStyle style = PaintingStyle.stroke,
  12. bool showActiveWaveform = true,
  13. bool absolute = false,
  14. 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,
});