DefaultLoaderBuilder constructor
DefaultLoaderBuilder({
- Key? key,
- required FutureProvider loader,
- WidgetBuilder? initBuilder,
- WidgetBuilder? loadingBuilder,
- WidgetBuilder? errorBuilder,
- WidgetBuilder? loadedBuilder,
- void onControllerCreated(
- LoaderController controller
- void onError(
- dynamic error,
- StackTrace stackTrace
- DefaultLoaderThemeData? themeData,
- bool autoLoad = true,
Creates a DefaultLoaderBuilder to handle resource loading using loader and show according UI for different state.
Implementation
DefaultLoaderBuilder({
Key? key,
required this.loader,
this.initBuilder,
this.loadingBuilder,
this.errorBuilder,
this.loadedBuilder,
this.onControllerCreated,
this.onError,
this.themeData,
this.autoLoad = true,
}) : super(key: key);