defaults/default_builder library
Functions
-
defaultBuilder<
D extends DataState, E> ({Widget onLoading()?, required Widget onData(D), Widget onError(ErrorState< E> state)?, Widget otherwise()?}) → 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