/// Minimal stand-ins for the parts of flutter_bloc that pipe recognises, so the /// fixture needs no dependencies. pipe identifies blocs by the `Bloc<...>` / /// `Cubit<...>` supertype and by `emit(...)` call sites. library; abstract class Bloc { Bloc(S initial) : state = initial; S state; void emit(S next) { state = next; } void add(E event) {} void on( void Function(T event, void Function(S next) emit) handler, ) {} } /// Minimal stand-in for flutter_bloc's BlocBuilder, so render-site extraction /// can be exercised without Flutter. class BlocBuilder { const BlocBuilder({required this.builder}); final Object Function(Object context, S state) builder; }