FFSlider constructor

FFSlider({
  1. FFColor? legacyActiveColor,
  2. FFColor? legacyInactiveColor,
  3. double? legacyMin,
  4. double? legacyMax,
  5. double? stepSize,
  6. double? legacyInitialValue,
  7. bool? showValue,
  8. double? legacyDisplayValue,
  9. double? legacyWidth,
  10. int? legacyDebounceTime,
  11. bool? onChangeEnd,
  12. int? legacyNumDivisions,
  13. FFDisable? disabled,
  14. int? numDecimalPlaces,
  15. FFColorValue? activeColorValue,
  16. FFColorValue? inactiveColorValue,
  17. FFDoubleValue? minValue,
  18. FFDoubleValue? maxValue,
  19. FFIntegerValue? numDivisionsValue,
  20. FFDoubleValue? initialValueValue,
  21. FFDoubleValue? displayValueValue,
  22. FFDoubleValue? widthValue,
  23. FFIntegerValue? debounceTimeValue,
})

Implementation

factory FFSlider({
  FFColor? legacyActiveColor,
  FFColor? legacyInactiveColor,
  $core.double? legacyMin,
  $core.double? legacyMax,
  $core.double? stepSize,
  $core.double? legacyInitialValue,
  $core.bool? showValue,
  $core.double? legacyDisplayValue,
  $core.double? legacyWidth,
  $core.int? legacyDebounceTime,
  $core.bool? onChangeEnd,
  $core.int? legacyNumDivisions,
  FFDisable? disabled,
  $core.int? numDecimalPlaces,
  FFColorValue? activeColorValue,
  FFColorValue? inactiveColorValue,
  FFDoubleValue? minValue,
  FFDoubleValue? maxValue,
  FFIntegerValue? numDivisionsValue,
  FFDoubleValue? initialValueValue,
  FFDoubleValue? displayValueValue,
  FFDoubleValue? widthValue,
  FFIntegerValue? debounceTimeValue,
}) {
  final result = create();
  if (legacyActiveColor != null) result.legacyActiveColor = legacyActiveColor;
  if (legacyInactiveColor != null)
    result.legacyInactiveColor = legacyInactiveColor;
  if (legacyMin != null) result.legacyMin = legacyMin;
  if (legacyMax != null) result.legacyMax = legacyMax;
  if (stepSize != null) result.stepSize = stepSize;
  if (legacyInitialValue != null)
    result.legacyInitialValue = legacyInitialValue;
  if (showValue != null) result.showValue = showValue;
  if (legacyDisplayValue != null)
    result.legacyDisplayValue = legacyDisplayValue;
  if (legacyWidth != null) result.legacyWidth = legacyWidth;
  if (legacyDebounceTime != null)
    result.legacyDebounceTime = legacyDebounceTime;
  if (onChangeEnd != null) result.onChangeEnd = onChangeEnd;
  if (legacyNumDivisions != null)
    result.legacyNumDivisions = legacyNumDivisions;
  if (disabled != null) result.disabled = disabled;
  if (numDecimalPlaces != null) result.numDecimalPlaces = numDecimalPlaces;
  if (activeColorValue != null) result.activeColorValue = activeColorValue;
  if (inactiveColorValue != null)
    result.inactiveColorValue = inactiveColorValue;
  if (minValue != null) result.minValue = minValue;
  if (maxValue != null) result.maxValue = maxValue;
  if (numDivisionsValue != null) result.numDivisionsValue = numDivisionsValue;
  if (initialValueValue != null) result.initialValueValue = initialValueValue;
  if (displayValueValue != null) result.displayValueValue = displayValueValue;
  if (widthValue != null) result.widthValue = widthValue;
  if (debounceTimeValue != null) result.debounceTimeValue = debounceTimeValue;
  return result;
}