mirror of
https://gitlab.com/nkming2/nc-photos.git
synced 2025-03-13 18:58:53 +01:00
Add template type to stream extension
This commit is contained in:
parent
b809809727
commit
511e95b237
1 changed files with 1 additions and 1 deletions
|
@ -1,3 +1,3 @@
|
|||
extension StreamExtension on Stream {
|
||||
extension StreamExtension<T> on Stream<T> {
|
||||
Stream<U> whereType<U>() => where((event) => event is U).cast<U>();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue