encodeRangeSliderValueIndicatorShape static method
Encodes the given value
to the String representation. Supported values
are:
paddle
rectangular
All other values, including null
, will result in null
.
Implementation
static String? encodeRangeSliderValueIndicatorShape(
RangeSliderValueIndicatorShape? value,
) {
assert(value == null ||
value is PaddleRangeSliderValueIndicatorShape ||
value is RectangularRangeSliderValueIndicatorShape);
String? result;
if (value != null) {
if (value is PaddleRangeSliderValueIndicatorShape) {
result = 'paddle';
} else if (value is RectangularRangeSliderValueIndicatorShape) {
result = 'rectangular';
}
}
return _stripDynamicNull(result);
}