1
0
Fork 0
mirror of https://gitlab.com/nkming2/nc-photos.git synced 2025-03-10 09:18:52 +01:00
nc-photos/app/lib/stream_extension.dart
2022-05-14 15:00:43 +08:00

3 lines
110 B
Dart

extension StreamExtension on Stream {
Stream<U> whereType<U>() => where((event) => event is U).cast<U>();
}