defaults/default_builder library
Functions
-
defaultBuilder<
D extends DataState, E> ({Widget onLoading(BuildContext context)?, required Widget onData(BuildContext context, D state), Widget onError(BuildContext context, ErrorState< E> state)?, Widget otherwise(BuildContext context)?}) → Widget Function(BuildContext, BlocState) - T = Type of state of Bloc in use D = Type of Data expected when you get Data E = Type of Data expected in Error