TrackConfiguration constructor

const TrackConfiguration({
  1. double height = 8.0,
  2. double border = 1.0,
  3. Color borderColor = Colors.black,
  4. Gradient activeGradient = const LinearGradient(colors: [Colors.blue, Colors.red]),
  5. Gradient inactiveGradient = const LinearGradient(colors: [Colors.grey, Colors.grey]),
  6. double borderRadius = 30.0,
  7. bool displayOuterShadows = false,
  8. bool displayInnerShadows = false,
  9. bool constrainThumbInTrack = true,
  10. Shadow innerTopShadow = const Shadow(spread: 9, offset: Offset(-5, -5), inflate: 0, radius: 30),
  11. Shadow innerBottomShadow = const Shadow(spread: 4, offset: Offset(5, 5), inflate: 0, radius: 30),
  12. Shadow outerTopShadow = const Shadow(spread: 1, offset: Offset(-2, -2), inflate: 0, radius: 30),
  13. Shadow outerBottomShadow = const Shadow(spread: 1, offset: Offset(2, 2), inflate: 0, radius: 30),
})

Implementation

const TrackConfiguration({
  this.height = 8.0,
  this.border = 1.0,
  this.borderColor = Colors.black,
  this.activeGradient =
      const LinearGradient(colors: [Colors.blue, Colors.red]),
  this.inactiveGradient =
      const LinearGradient(colors: [Colors.grey, Colors.grey]),
  this.borderRadius = 30.0,
  this.displayOuterShadows = false,
  this.displayInnerShadows = false,
  this.constrainThumbInTrack = true,
  this.innerTopShadow =
      const Shadow(spread: 9, offset: Offset(-5, -5), inflate: 0, radius: 30),
  this.innerBottomShadow =
      const Shadow(spread: 4, offset: Offset(5, 5), inflate: 0, radius: 30),
  this.outerTopShadow =
      const Shadow(spread: 1, offset: Offset(-2, -2), inflate: 0, radius: 30),
  this.outerBottomShadow =
      const Shadow(spread: 1, offset: Offset(2, 2), inflate: 0, radius: 30),
});