createRenderObject method
Creates an instance of the RenderObject class that this RenderObjectWidget represents, using the configuration described by this RenderObjectWidget.
This method should not do anything with the children of the render object. That should instead be handled by the method that overrides RenderObjectElement.mount in the object rendered by this object's createElement method. See, for example, SingleChildRenderObjectElement.mount.
Implementation
@override
RenderObject createRenderObject(BuildContext context) {
final SfGaugeThemeData gaugeTheme = SfGaugeTheme.of(context)!;
final RadialAxisScope radialAxisScope = RadialAxisScope.of(context);
final RadialAxisInheritedWidget ancestor = context
.dependOnInheritedWidgetOfExactType<RadialAxisInheritedWidget>()!;
return RenderRangePointer(
value: value.clamp(ancestor.minimum, ancestor.maximum),
enableDragging: enableDragging,
onValueChanged: onValueChanged,
onValueChangeStart: onValueChangeStart,
onValueChangeEnd: onValueChangeEnd,
onValueChanging: onValueChanging,
cornerStyle: cornerStyle,
gradient: gradient,
pointerOffset: pointerOffset,
sizeUnit: sizeUnit,
width: width,
dashArray: dashArray,
color: color,
pointerAnimationController: radialAxisScope.animationController,
pointerInterval: radialAxisScope.pointerInterval,
enableAnimation: enableAnimation,
isRadialGaugeAnimationEnabled:
radialAxisScope.isRadialGaugeAnimationEnabled,
repaintNotifier: radialAxisScope.repaintNotifier,
animationType: animationType,
context: context,
gaugeThemeData: gaugeTheme);
}