PlayerWaveStyle constructor

const PlayerWaveStyle({
  1. Color fixedWaveColor = Colors.white54,
  2. Color liveWaveColor = Colors.white,
  3. bool showTop = true,
  4. bool showBottom = true,
  5. bool showSeekLine = true,
  6. StrokeCap waveCap = StrokeCap.round,
  7. Color seekLineColor = Colors.white,
  8. double seekLineThickness = 2.0,
  9. double waveThickness = 3.0,
  10. Color backgroundColor = Colors.black,
  11. Shader? fixedWaveGradient,
  12. double scaleFactor = 100.0,
  13. Shader? liveWaveGradient,
  14. double spacing = 5,
  15. double scrollScale = 1.0,
})

Implementation

const PlayerWaveStyle({
  this.fixedWaveColor = Colors.white54,
  this.liveWaveColor = Colors.white,
  this.showTop = true,
  this.showBottom = true,
  this.showSeekLine = true,
  this.waveCap = StrokeCap.round,
  this.seekLineColor = Colors.white,
  this.seekLineThickness = 2.0,
  this.waveThickness = 3.0,
  this.backgroundColor = Colors.black,
  this.fixedWaveGradient,
  this.scaleFactor = 100.0,
  this.liveWaveGradient,
  this.spacing = 5,
  this.scrollScale = 1.0,
})  : assert(spacing >= 0),
      assert(waveThickness < spacing,
          "waveThickness can't be greater than spacing");