build method

  1. @override
Widget build(
  1. BuildContext context
)
override

Implementation

@override
Widget build(BuildContext context) {
  return Slider(
    value: value,
    onChanged: (v) {
      this.value = v;
      onChanged?.call(v);
      updateState();
    },
    secondaryTrackValue: secondaryTrackValue,
    onChangeStart: onChangeStart,
    onChangeEnd: onChangeEnd,
    min: min,
    max: max,
    divisions: divisions,
    label: labelBuilder?.call(value) ?? label ?? (autoLabel ? value.toString() : null),
    activeColor: activeColor,
    inactiveColor: inactiveColor,
    secondaryActiveColor: secondaryActiveColor,
    thumbColor: thumbColor,
    overlayColor: overlayColor,
    mouseCursor: mouseCursor,
    semanticFormatterCallback: semanticFormatterCallback,
    focusNode: focusNode,
    autofocus: autofocus,
    allowedInteraction: allowedInteraction,
  );
}