val property
Short alias for the current value.
This provides a more convenient way to read the signal's value:
print(count.val); // Instead of count.value
doubled = count.val * 2; // Cleaner syntax
Implementation
T get val => value;
Short alias for the current value.
This provides a more convenient way to read the signal's value:
print(count.val); // Instead of count.value
doubled = count.val * 2; // Cleaner syntax
T get val => value;