StreamedAction<T> constructor

StreamedAction<T>({
  1. @Deprecated('Use subscription on stream instead. And handle changes in listener. Will be removed in next major version') void onChanged(
    1. T data
    )?,
  2. bool acceptUnique = false,
})

acceptUnique - data will be accepted only if it's unique

Implementation

StreamedAction({
  @Deprecated(
    'Use subscription on stream instead. And handle changes in listener. Will be removed in next major version',
  )
      this.onChanged,
  bool acceptUnique = false,
}) : _acceptUnique = acceptUnique;