ScrollbarConfig class

Configuration class for customizing the scrollbar appearance in MultiSelectField menu.

This class encapsulates all scrollbar-related styling options following Flutter's theming conventions, similar to how ScrollbarThemeData works.

Example usage:

MultiSelectField(
  scrollbarConfig: ScrollbarConfig(
    visible: true,
    themeData: ScrollbarThemeData(
      thickness: WidgetStateProperty.all(12.0),
      thumbColor: WidgetStateProperty.all(Colors.orange),
      trackColor: WidgetStateProperty.all(Colors.grey[200]),
    ),
  ),
)

Constructors

ScrollbarConfig.new({bool visible = true, ScrollbarThemeData? themeData})
const
ScrollbarConfig.preset({required String preset, Color? color})
Creates a ScrollbarConfig with common preset configurations.
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
themeData ScrollbarThemeData?
The scrollbar theme data that defines the appearance of the scrollbar.
final
visible bool
Whether the scrollbar should be visible in the menu dropdown.
final

Methods

copyWith({bool? visible, ScrollbarThemeData? themeData}) ScrollbarConfig
Creates a copy of this ScrollbarConfig 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