DraggableScrollableControllerRaiiExt extension

Extension for managing DraggableScrollableController lifecycle.

Example:

final draggableController = DraggableScrollableController()
  .withLifecycle(this, debugLabel: 'DraggableController');
on

Methods

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

Available on DraggableScrollableController, provided by the DraggableScrollableControllerRaiiExt extension

Attaches this controller to a RaiiLifecycleAware object for automatic disposal.