GridScrollController class
Manages horizontal and vertical scroll controllers for the data grid, exposing reactive streams for scroll metric changes.
Constructors
- GridScrollController({ScrollController? horizontal, ScrollController? vertical})
- Creates a GridScrollController with optional pre-existing controllers.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- horizontalController → ScrollController
-
The scroll controller driving horizontal movement.
final
-
horizontalMetrics$
→ Stream<
ScrollMetrics?> -
Stream of horizontal scroll metric updates.
no setter
- horizontalOffset → double
-
Current horizontal scroll offset, or 0 if no clients are attached.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- verticalController → ScrollController
-
The scroll controller driving vertical movement.
final
-
verticalMetrics$
→ Stream<
ScrollMetrics?> -
Stream of vertical scroll metric updates.
no setter
- verticalOffset → double
-
Current vertical scroll offset, or 0 if no clients are attached.
no setter
Methods
-
dispose(
) → void - Disposes both scroll controllers and closes metric streams.
-
jumpToColumn(
int columnIndex, {required List< double> columnWidths}) → void -
Instantly scrolls horizontally to
columnIndexwithout animation. -
jumpToRow(
int rowIndex, {required double rowHeight}) → void -
Instantly scrolls vertically to
rowIndexwithout animation. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
scrollToColumn(
int columnIndex, {required List< double> columnWidths, Duration duration = const Duration(milliseconds: 300), Curve curve = Curves.easeInOut}) → Future<void> -
Animates the horizontal scroll to bring
columnIndexinto view. -
scrollToRow(
int rowIndex, {required double rowHeight, Duration duration = const Duration(milliseconds: 300), Curve curve = Curves.easeInOut}) → Future< void> -
Animates the vertical scroll to bring
rowIndexinto view. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited