withLifecycle method

ScrollPositionWithSingleContext withLifecycle(
  1. RaiiLifecycleAware lifecycleAware, {
  2. String? debugLabel,
})

Attaches this scroll position to a RaiiLifecycleAware object.

Implementation

ScrollPositionWithSingleContext withLifecycle(
  RaiiLifecycleAware lifecycleAware, {
  String? debugLabel,
}) {
  RaiiDisposeable.withLifecycle(
    lifecycleAware,
    dispose: dispose,
    debugLabel: debugLabel,
  );
  return this;
}