AppFlowyScrollService class abstract

AppFlowyScrollService is responsible for processing document scrolling.

Usually, this service can be obtained by the following code.

final keyboardService = editorState.service.scrollService;

Constructors

AppFlowyScrollService()

Properties

dy → double
Returns the offset of the current document on the vertical axis.
no setter
hashCode → int
The hash code for this object.
no setterinherited
maxScrollExtent → double
Returns the maximum scroll height on the vertical axis.
no setter
minScrollExtent → double
Returns the minimum scroll height on the vertical axis.
no setter
onePageHeight → double?
Returns the height of the current document.
no setter
page → int?
Returns the number of pages in the current document.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
scrollController → ScrollController
scroll controller
no setter

Methods

disable() → void
Disables scroll service.
enable() → void
Enables scroll service.
goBallistic(double velocity) → void
jumpTo(int index) → void
jumpToBottom() → void
jumpToTop() → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
scrollTo(double dy, {Duration duration}) → void
Scrolls to the specified position.
startAutoScroll(Offset offset, {double edgeOffset = 200, AxisDirection? direction, Duration? duration}) → void
inherited
stopAutoScroll() → void
inherited
toString() → String
A string representation of this object.
inherited

Operators

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