SliderConfig class
Configuration for the slider.
Constructors
- SliderConfig.new({double min = 0.0, double max = 1.0, double initialValue = 0.0, SliderDirection direction = SliderDirection.horizontal, TrackConfig trackConfig = const TrackConfig(), ThumbConfig thumbConfig = const ThumbConfig(), bool showLabel = false, TextStyle? labelStyle, String labelFormat(double)?})
-
Creates a slider configuration.
const
Properties
- direction → SliderDirection
-
Direction of the slider.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- initialValue → double
-
Initial value of the slider.
final
- labelFormat → String Function(double)?
-
Format function for the label.
final
- labelStyle → TextStyle?
-
Style for the label text.
final
- max → double
-
Maximum value of the slider.
final
- min → double
-
Minimum value of the slider.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- showLabel → bool
-
Whether to show a label with the current value.
final
- thumbConfig → ThumbConfig
-
Configuration for the thumb.
final
- trackConfig → TrackConfig
-
Configuration for the track.
final
Methods
-
copyWith(
{double? min, double? max, double? initialValue, SliderDirection? direction, TrackConfig? trackConfig, ThumbConfig? thumbConfig, bool? showLabel, TextStyle? labelStyle, String labelFormat(double)?}) → SliderConfig - Creates a copy of this configuration with the given fields replaced.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited