EditorScrollController class

This class controls the scroll behavior of the editor.

It must be provided in the widget tree above the PageComponent.

You can use offsetNotifier to get the current scroll offset. And, you can use visibleRangeNotifier to get the first level visible items.

If the shrinkWrap is true, the scrollController must not be null and the editor should be wrapped in a SingleChildScrollView.

Constructors

EditorScrollController({required EditorState editorState, bool shrinkWrap = false, ScrollController? scrollController})

Properties

editorState EditorState
final
hashCode int
The hash code for this object.
no setterinherited
itemPositionsListener → ItemPositionsListener
no setter
itemScrollController → ItemScrollController
no setter
offsetNotifier ValueNotifier<double>
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scrollController ScrollController
latefinal
scrollOffsetController → ScrollOffsetController
no setter
scrollOffsetListener → ScrollOffsetListener
no setter
shouldDisposeScrollController bool
getter/setter pair
shrinkWrap bool
final
visibleRangeNotifier ValueNotifier<(int, int)>
final

Methods

animateTo({required double offset, required Duration duration, Curve curve = Curves.linear}) Future<void>
dispose() → void
jumpTo({required double offset}) → void
jumpToBottom() → void
jumpToTop() → void
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