KeepAliveLink class

A link that keeps an effect or signal alive, preventing automatic disposal.

Similar to Riverpod's KeepAliveLink, this provides a way to prevent automatic disposal of signals/effects until explicitly closed.

Example:

final sig = signal(0);
final keepAlive = sig.keepAlive();

// Later, when you want to allow disposal:
keepAlive.close();

Properties

closed bool
Whether this keep-alive link has been closed.
no setter
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

close() → void
Closes this keep-alive link, allowing the associated resource to be disposed when no longer needed.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited