nc-photos/app/lib/rx_extension.dart

8 lines
178 B
Dart
Raw Normal View History

import 'package:rxdart/rxdart.dart';
extension BehaviorSubjectExtension<T> on BehaviorSubject<T> {
void addWithValue(T Function(T value) adder) {
add(adder(value));
}
}