timestamped<T> static method
Creates a TimestampBeacon with an initial value.
This beacon attaches a timestamp to each value update.
Example:
var myBeacon = Beacon.timestamped(10);
print(myBeacon.value); // Outputs: (value: 10, timestamp: DateTime.now())
Implementation
static TimestampBeacon<T> timestamped<T>(T initialValue) =>
TimestampBeacon<T>(initialValue);