Scrollbar class

A scrollbar thumb indicates which portion of a ScrollView is actually visible.

Inheritance

Constructors

Scrollbar({Key? key, required Widget child, ScrollController? controller, bool autofocus = false, FocusNode? focusNode, double minThumbLength = _kMinThumbExtent, bool isAlwaysShown = true, double? thickness, ScrollNotificationPredicate notificationPredicate = defaultScrollNotificationPredicate})
Creates a desktop Scrollbar.
const

Properties

autofocus bool
final
child Widget
The widget below this widget in the tree.
final
controller ScrollController?
The ScrollController used to implement Scrollbar dragging.
final
focusNode FocusNode?
final
hashCode int
The hash code for this object.
no setterinherited
isAlwaysShown bool
Indicates that the scrollbar should be visible, even when a scroll is not underway. Defaults to true.
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
minThumbLength double
The preferred smallest size the scrollbar thumb can shrink to when the total scrollable extent is large, the current visible viewport is small, and the viewport is not over scrolled.
final
notificationPredicate ScrollNotificationPredicate
A check that specifies whether a ScrollNotification should be handled by this widget.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
thickness double?
The thickness of the scrollbar in the cross axis of the scrollable.
final

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() State<Scrollbar>
Creates the mutable state for this widget at a given location in the tree.
override
debugDescribeChildren() List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
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
toStringDeep({String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a string representation of this node and its descendants.
inherited
toStringShallow({String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a one-line detailed description of the object.
inherited
toStringShort() String
A short, textual description of this widget.
inherited

Operators

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