Dial constructor

Dial({
  1. Key? key,
  2. double value = 0.0,
  3. required Image image,
  4. required double size,
  5. required double ringWidth,
  6. required Color color,
  7. Color? hotColor,
  8. double opacity = 1.0,
  9. int stopCount = 0,
  10. bool clip = false,
  11. bool clockwise = true,
  12. double orientation = 0.0,
  13. Color? indicatorColor,
  14. double indicatorWidth = 1.0,
  15. double? indicatorLength,
  16. void onDialed(
    1. double degrees,
    2. double percent,
    3. int stopNumber
    )?,
  17. void onFocusChange(
    1. bool focused
    )?,
})

Creates an Dial

Implementation

Dial({
  super.key,
  this.value = 0.0,
  required this.image,
  required this.size,
  required this.ringWidth,
  required this.color,
  this.hotColor,
  this.opacity = 1.0,
  this.stopCount = 0,
  this.clip = false,
  this.clockwise = true,
  this.orientation = 0.0,
  this.indicatorColor,
  this.indicatorWidth = 1.0,
  this.indicatorLength,
  this.onDialed,
  this.onFocusChange,
}) {
  assert(size > 0);
  assert(ringWidth >= 0 && ringWidth < size / 2);
  assert(opacity > 0.0 && opacity <= 1);
  assert(value >= 0.0 && value <= 360.0);
  assert(orientation >= -360.0 && orientation <= 360.0);
  assert(indicatorWidth >= 0.0);
}