KnobStyle constructor

const KnobStyle({
  1. double knobRadius = 0.08,
  2. double borderWidth = 0,
  3. GaugeSizeUnit sizeUnit = GaugeSizeUnit.factor,
  4. Color? borderColor,
  5. Color? color,
})

Creates the knob style with default or required properties.

The arguments knobRadius, borderWidth must be non-negative.

Implementation

const KnobStyle({
  this.knobRadius = 0.08,
  this.borderWidth = 0,
  this.sizeUnit = GaugeSizeUnit.factor,
  this.borderColor,
  this.color,
}) : assert(knobRadius >= 0, 'Knob radius must be a non-negative value.'),
     assert(
       borderWidth >= 0,
       'Knob border width must be a '
       'non-negative value.',
     );