1
0
Fork 0
mirror of https://gitlab.com/nkming2/nc-photos.git synced 2025-03-11 01:38:52 +01:00
nc-photos/app/lib/stream_extension.dart
2022-06-07 01:39:29 +08:00

3 lines
116 B
Dart

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