NeedleConfig constructor

const NeedleConfig({
  1. NeedleStyle style = NeedleStyle.tapered,
  2. Color color = Colors.red,
  3. double lengthRatio = 0.8,
  4. double width = 8.0,
  5. Color? knobColor,
  6. double knobRadius = 10.0,
  7. bool showKnob = true,
  8. double tailLengthRatio = 0.2,
  9. Gradient? gradient,
  10. bool hasShadow = true,
})

Creates a needle configuration.

Implementation

// ignore: sort_constructors_first
const NeedleConfig({
  this.style = NeedleStyle.tapered,
  this.color = Colors.red,
  this.lengthRatio = 0.8,
  this.width = 8.0,
  this.knobColor,
  this.knobRadius = 10.0,
  this.showKnob = true,
  this.tailLengthRatio = 0.2,
  this.gradient,
  this.hasShadow = true,
});