Skip to content

Commit

Permalink
update docs DefaultIfEmptyExtension (#780)
Browse files Browse the repository at this point in the history
  • Loading branch information
hoc081098 authored Jan 27, 2025
1 parent 5a917bc commit d470f87
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/rxdart/lib/src/transformers/default_if_empty.dart
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ class DefaultIfEmptyStreamTransformer<S> extends StreamTransformerBase<S, S> {
stream, (sink) => _DefaultIfEmptyStreamSink<S>(sink, defaultValue));
}

///
/// Extend the Stream class with the ability to emit a single default item if the
/// source Stream emits nothing.
extension DefaultIfEmptyExtension<T> on Stream<T> {
/// Emit items from the source Stream, or a single default item if the source
/// Stream emits nothing.
Expand Down

0 comments on commit d470f87

Please sign in to comment.