RectangleWaveform constructor
RectangleWaveform({
- 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,
- double borderWidth = 1.0,
- Color activeBorderColor = Colors.white,
- Color inactiveBorderColor = Colors.white,
- bool showActiveWaveform = true,
- bool absolute = false,
- bool invert = false,
- bool isRoundedRectangle = false,
- bool isCentered = false,
Implementation
RectangleWaveform({
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.borderWidth = 1.0,
this.activeBorderColor = Colors.white,
this.inactiveBorderColor = Colors.white,
super.showActiveWaveform = true,
super.absolute = false,
super.invert = false,
this.isRoundedRectangle = false,
this.isCentered = false,
}) : assert(
borderWidth >= 0 && borderWidth <= 1.0,
'BorderWidth must be between 0 and 1',
);