PreviousValuePair<T> typedef
PreviousValuePair<T> = ({T current, T? previous})
A record that holds the previous
and current
value of a stream.
The previous
value can be null
if the stream is emitting its first
value.
Implementation
typedef PreviousValuePair<T> = ({T? previous, T current});