// UI for freezed_style.dart, kept in its own file because type tests in a file // that declares a bloc do not count as UI. import 'bloc.dart'; import 'freezed_style.dart'; class DocView { const DocView(); Object build() => BlocBuilder( builder: (context, state) => switch (state) { DocLoading() => 'loading', DocReady() => 'ready', DocStale() => 'stale', }, ); }