get method
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
@pragma('vm:prefer-inline')
@pragma('wasm:prefer-inline')
@pragma('dart2js:prefer-inline')
@override
T get() {
getCustom(this);
return _context.widget as T;
}