Dial constructor
Dial({
- Key? key,
- double value = 0.0,
- required Image image,
- required double size,
- required double ringWidth,
- required Color color,
- Color? hotColor,
- double opacity = 1.0,
- int stopCount = 0,
- bool clip = false,
- bool clockwise = true,
- double orientation = 0.0,
- Color? indicatorColor,
- double indicatorWidth = 1.0,
- double? indicatorLength,
- void onDialed()?,
- void onFocusChange(
- 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);
}