1
0
Fork 0
mirror of https://gitlab.com/nkming2/nc-photos.git synced 2025-03-28 18:01:35 +01:00
nc-photos/app/lib/stream_extension.dart

4 lines
110 B
Dart
Raw Normal View History

2022-05-04 01:37:10 +08:00
extension StreamExtension on Stream {
Stream<U> whereType<U>() => where((event) => event is U).cast<U>();
}