get abstract method

T get()

Gets the current value and establishes a reactive dependency.

This is equivalent to accessing the value getter.

Returns: The current value

Example:

final Readonly<int> readonly = Signal(0).readonly();
final value = readonly.get();

Implementation

T get();