val property

T get val

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;