ScrollPositionRaiiExt extension
Extension for managing ScrollPosition lifecycle.
Example:
final scrollPosition = ScrollPosition(
physics: AlwaysScrollableScrollPhysics(),
context: context,
).withLifecycle(this, debugLabel: 'ScrollPosition');
Methods
-
withLifecycle(
RaiiLifecycleAware lifecycleAware, {String? debugLabel}) → ScrollPosition -
Available on ScrollPosition, provided by the ScrollPositionRaiiExt extension
Attaches this scroll position to a RaiiLifecycleAware object.