ImageSliderStyleOptions class

Configuration options for the ImageSlider widget's visual appearance

This class provides a convenient way to customize the slider's appearance including colors, dimensions, and style preset.

Example:

ImageSliderStyleOptions(
  style: ImageSliderStyleEnum.DEFAULT,
  width: 300,
  imageWidth: 50,
  color: Colors.blue,
  borderColor: Colors.white,
)

Constructors

ImageSliderStyleOptions({ImageSliderStyleEnum style = ImageSliderStyleEnum.DEFAULT, Color color = Colors.grey, double width = 200, double imageWidth = 40, Color borderColor = Colors.white})
Creates an ImageSliderStyleOptions instance

Properties

borderColor Color
Color of the slider border (if applicable)
final
color Color
Color of the slider track and anchors
final
computedOptions ImageSliderStyle
Gets the computed style options based on the selected style
no setter
hashCode int
The hash code for this object.
no setterinherited
imageWidth double
Width (and height) of the draggable image indicator
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
style ImageSliderStyleEnum
The visual style preset to use
final
width double
Total width of the slider widget
final

Methods

copyWith({ImageSliderStyleEnum? style, Color? color, Color? borderColor, double? width, double? imageWidth}) ImageSliderStyleOptions
Creates a copy of this ImageSliderStyleOptions with the given fields replaced with new values
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