KeepAliveHandleRaiiExt extension

Extension for managing KeepAliveHandle lifecycle.

Example:

final keepAliveHandle = KeepAliveHandle()
  .withLifecycle(this, debugLabel: 'KeepAliveHandle');
on

Methods

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

Available on KeepAliveHandle, provided by the KeepAliveHandleRaiiExt extension

Attaches this keep alive handle to a RaiiLifecycleAware object for automatic disposal.