pipe/test/fixtures/stuck_loading/lib/notifier.dart

20 lines
518 B
Dart

/// Minimal stand-ins for the parts of `provider` that pipe recognises, so the
/// fixture needs no dependency.
library;
class ChangeNotifier {
void notifyListeners() {}
}
class Consumer<T> {
const Consumer({required this.builder});
final Object Function(Object context, T value, Object child) builder;
}
class Selector<T, R> {
const Selector({required this.selector, required this.builder});
final R Function(T value) selector;
final Object Function(Object context, R value, Object child) builder;
}