MacosScrollbarThemeData class

Defines default property values for descendant MacosScrollbar widgets.

Descendant widgets obtain the current MacosScrollbarThemeData object with ScrollbarTheme.of(context). Instances of MacosScrollbarThemeData can be customized with MacosScrollbarThemeData.copyWith.

Typically the MacosScrollbarThemeData of a MacosScrollbarTheme is specified as part of the overall MacosTheme with MacosThemeData.scrollbarTheme.

All MacosScrollbarThemeData properties are null by default. When null, the MacosScrollbar computes its own default values.

See also:

  • MacosThemeData, which describes the overall theme information for the application.
Mixed in types

Constructors

MacosScrollbarThemeData({double? thickness, double? thicknessWhileHovering, bool? thumbVisibility, Radius? radius, Color? thumbColor})
Creates a theme that can be used for MacosThemeData.scrollbarTheme.
const

Properties

hashCode int
The hash code for this object.
no setteroverride
radius Radius?
Overrides the default value of MacosScrollbar.radius in all descendant widgets.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
thickness double?
Overrides the default value of MacosScrollbar.thickness in all descendant MacosScrollbar widgets.
final
thicknessWhileHovering double?
Overrides the default value of MacosScrollbar.hoverThickness in all descendant MacosScrollbar widgets when hovering is active.
final
thumbColor Color?
Overrides the default Color of the MacosScrollbar thumb in all descendant MacosScrollbar widgets.
final
thumbVisibility bool?
Overrides the default value of MacosScrollbar.thumbVisibility in all descendant MacosScrollbar widgets.
final

Methods

copyWith({double? thickness, double? thicknessWhileHovering, bool? showTrackOnHover, bool? thumbVisibility, Radius? radius, Color? thumbColor}) MacosScrollbarThemeData
Creates a copy of this object with the given fields replaced with the new values.
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
override
merge(MacosScrollbarThemeData? other) MacosScrollbarThemeData
Merges this MacosScrollbarThemeData with another.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) String
A string representation of this object.
inherited
toStringShort() String
A brief description of this object, usually just the runtimeType and the hashCode.
inherited

Operators

operator ==(Object other) bool
The equality operator.
override

Static Methods

lerp(MacosScrollbarThemeData? a, MacosScrollbarThemeData? b, double t) MacosScrollbarThemeData
Linearly interpolate between two Scrollbar themes.