BarStyle.volume constructor

BarStyle.volume({
  1. double width = 5,
  2. double height = 120,
  3. Color? color,
  4. Color? background,
  5. BorderRadius? borderRadius,
})

The borderRadius that the VolumeBar will have

The background that the VolumeBar will have

The color of the active volume that the VolumeBar will have

The width and height are the Size that the VolumeBar will have

Implementation

BarStyle.volume({
  this.width = 5,
  this.height = 120,
  Color? color,
  Color? background,
  BorderRadius? borderRadius,
})  : this.identifier = Colors.transparent,
      this.color = color ?? Colors.white,
      this.secondBackground = Colors.transparent,
      this.background = background ?? Colors.white.withOpacity(0.2),
      this.borderRadius = borderRadius ?? EdgeRadius.all(5.0),
      this.identifierWidth = 0.0;