Skip to content

Commit

Permalink
fix signature asList on Stream<Snapshot>
Browse files Browse the repository at this point in the history
  • Loading branch information
rbellens committed Jan 4, 2022
1 parent 539e2b3 commit 738aa17
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@

# 0.2.4

- fix signature `asList` on `Stream<Snapshot>`

# 0.2.3

- fix converting to nullable type
Expand Down
2 changes: 1 addition & 1 deletion lib/src/stream.dart
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ extension SnapshotStreamX on Stream<Snapshot> {

/// Returns a stream where each snapshot is converted to a nullable list of
/// objects of type T.
Stream<List<T>?>? asList<T>({String? format}) =>
Stream<List<T>?> asList<T>({String? format}) =>
map((s) => s.asList<T>(format: format));

/// Returns a stream where each snapshot is converted to a non-nullable list
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: snapshot
description: A library that can be used to implement data classes and simplifies conversion of JSON to data classes
version: 0.2.3
version: 0.2.4
homepage: https://github.com/appsup-dart/snapshot

environment:
Expand Down

0 comments on commit 738aa17

Please sign in to comment.