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
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