PlayerWaveStyle constructor
const
PlayerWaveStyle({
- Color fixedWaveColor = Colors.white54,
- Color liveWaveColor = Colors.white,
- bool showTop = true,
- bool showBottom = true,
- bool showSeekLine = true,
- StrokeCap waveCap = StrokeCap.round,
- Color seekLineColor = Colors.white,
- double seekLineThickness = 2.0,
- double waveThickness = 3.0,
- Color backgroundColor = Colors.black,
- Shader? fixedWaveGradient,
- double scaleFactor = 100.0,
- Shader? liveWaveGradient,
- double spacing = 5,
- 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");