ScrollableState<T extends StatefulWidget> mixin

A mixin for State subclasses that need scroll management.

Automatically manages a ScrollController, handling ownership (provided vs. internally created) and rebuilding on scroll changes.

Superclass constraints

Properties

context BuildContext
The BuildContext for this state object.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
mounted bool
Whether this state object is currently in the tree.
no setterinherited
providedScrollController ScrollController?
Override to provide an external ScrollController, or return null to use an internal one.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scrollController ScrollController
The ScrollController used by this widget.
no setter
widget → T
The current widget configuration.
no setterinherited

Methods

build(BuildContext context) Widget
Describes the part of the user interface represented by this state.
inherited
didUpdateWidget(covariant T oldWidget) → void
Called when the widget configuration changes.
override
dispose() → void
Called when this state object is removed from the tree permanently.
override
initState() → void
Called when this state object is first inserted into the tree.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setState(void fn()) → void
Notifies the framework that the internal state has changed, triggering a rebuild.
inherited
toString() String
A string representation of this object.
inherited

Operators

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