ViewportOffsetRaiiExt extension

Extension for managing ViewportOffset lifecycle.

Example:

final viewportOffset = ViewportOffset.fixed(0)
  .withLifecycle(this, debugLabel: 'ViewportOffset');
on

Methods

withLifecycle(RaiiLifecycleAware lifecycleAware, {String? debugLabel}) ViewportOffset

Available on ViewportOffset, provided by the ViewportOffsetRaiiExt extension

Attaches this viewport offset to a RaiiLifecycleAware object for automatic disposal.