get method
Returns the current value and establishes a reactive dependency.
This is equivalent to accessing the value getter.
Returns: The current value of the signal
Example:
final current = counter.get();
Implementation
@pragma("vm:prefer-inline")
@pragma("wasm:prefer-inline")
@pragma("dart2js:prefer-inline")
@override
T get() {
assert(!isDisposed, "Signal is disposed");
return getSignal(this);
}