FakeSuperEditorScroller class

Fake SuperEditorScroll, intended for tests that interact with logical resources but do not depend upon a real widget tree with a real Scrollable.

Implemented types

Constructors

FakeSuperEditorScroller()

Properties

hashCode int
The hash code for this object.
no setterinherited
maxScrollExtent double
The maximum possible scrolling offset, at which point the end of the scrolling content is visible in the viewport.
no setteroverride
minScrollExtent double
The smallest possible scrolling offset, which is usually zero.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scrollOffset double
The current scroll offset in the viewport, which is represented by the number of pixels between the top-left corner of the viewport, and the top-left corner of the content that sits inside the viewport.
no setteroverride
viewportDimension double
The height of a vertically scrolling viewport, or the width of a horizontally scrolling viewport.
no setteroverride

Methods

addScrollChangeListener(VoidCallback listener) → void
override
animateTo(double to, {required Duration duration, Curve curve = Curves.easeInOut}) → void
Animates scrollOffset from its current offset to to, over the given duration of time, following the given animation curve.
override
attach(ScrollPosition scrollPosition) → void
override
detach() → void
override
dispose() → void
override
jumpBy(double delta) → void
Immediately moves the scrollOffset by delta pixels.
override
jumpTo(double newScrollOffset) → void
Immediately moves the scrollOffset to newScrollOffset.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removeScrollChangeListener(VoidCallback listener) → void
override
toString() String
A string representation of this object.
inherited

Operators

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