getSliderLabel function
Implementation
String? getSliderLabel(SliderNode node, double value) {
if (!node.properties.showLabel) return null;
if (node.properties.label.trim().isEmpty) return kSliderDefaultLabel;
final String valueString = node.properties.allowFractionalPoints
? value.toStringAsFixed(1)
: value.round().toString();
return node.properties.label.replaceAll('\${value}', valueString);
}