ScrollBarStyle class

Class used to configure the style of the scrollbars. The scrollbars can be overlaid or inset. When inset, they add to the padding of the view. And the scrollbars can be drawn inside the padding area or on the edge of the view. For example, if a view has a background drawable and you want to draw the scrollbars inside the padding specified by the drawable, you can use ScrollBarStyle.SCROLLBARS_INSIDE_OVERLAY or ScrollBarStyle.SCROLLBARS_INSIDE_INSET. If you want them to appear at the edge of the view, ignoring the padding, then you can use ScrollBarStyle.SCROLLBARS_OUTSIDE_OVERLAY or ScrollBarStyle.SCROLLBARS_OUTSIDE_INSET.

Properties

hashCode int
The hash code for this object.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toNativeValue() int
Gets int native value.
toString() String
A string representation of this object.
override
toValue() int
Gets int value.

Operators

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

Static Properties

values Set<ScrollBarStyle>
Set of all values of ScrollBarStyle.
final

Static Methods

fromNativeValue(int? value) ScrollBarStyle?
Gets a possible ScrollBarStyle instance from a native value.
fromValue(int? value) ScrollBarStyle?
Gets a possible ScrollBarStyle instance from int value.

Constants

SCROLLBARS_INSIDE_INSET → const ScrollBarStyle
The scrollbar style to display the scrollbars inside the padded area, increasing the padding of the view. The scrollbars will not overlap the content area of the view.
SCROLLBARS_INSIDE_OVERLAY → const ScrollBarStyle
The scrollbar style to display the scrollbars inside the content area, without increasing the padding. The scrollbars will be overlaid with translucency on the view's content.
SCROLLBARS_OUTSIDE_INSET → const ScrollBarStyle
The scrollbar style to display the scrollbars at the edge of the view, increasing the padding of the view. The scrollbars will only overlap the background, if any.
SCROLLBARS_OUTSIDE_OVERLAY → const ScrollBarStyle
The scrollbar style to display the scrollbars at the edge of the view, without increasing the padding. The scrollbars will be overlaid with translucency.