WidgetPointer constructor
const
WidgetPointer({
- Key? key,
- double value = 0,
- bool enableDragging = false,
- ValueChanged<
double> ? onValueChanged, - ValueChanged<
double> ? onValueChangeStart, - ValueChanged<
double> ? onValueChangeEnd, - ValueChanged<
ValueChangingArgs> ? onValueChanging, - AnimationType animationType = AnimationType.ease,
- bool enableAnimation = false,
- double animationDuration = 1000,
- GaugeSizeUnit offsetUnit = GaugeSizeUnit.logicalPixel,
- double offset = 0,
- required Widget child,
Create a widget pointer with the default or required properties.
The arguments child
, value
, offset
, must not be null and
animationDuration
must be non-negative.
Implementation
const WidgetPointer(
{Key? key,
this.value = 0,
this.enableDragging = false,
this.onValueChanged,
this.onValueChangeStart,
this.onValueChangeEnd,
this.onValueChanging,
this.animationType = AnimationType.ease,
this.enableAnimation = false,
this.animationDuration = 1000,
this.offsetUnit = GaugeSizeUnit.logicalPixel,
this.offset = 0,
required this.child})
: assert(animationDuration > 0,
'Animation duration must be a non-negative value.'),
super(key: key, child: child);