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

4 lines
116 B
Dart
Raw Normal View History

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