distinct<T> function

PipeCallback<T> distinct<T>()

Skips data value if they are equal to the previous data value.

final textState = Atom(
     '',
     key: 'textState',
     pipe: distinct()
);

Implementation

PipeCallback<T> distinct<T>() {
  return _Distinct<T>().pipe;
}