DefaultLoaderBuilder constructor

DefaultLoaderBuilder({
  1. Key? key,
  2. required FutureProvider loader,
  3. WidgetBuilder? initBuilder,
  4. WidgetBuilder? loadingBuilder,
  5. WidgetBuilder? errorBuilder,
  6. WidgetBuilder? loadedBuilder,
  7. void onControllerCreated(
    1. LoaderController controller
    )?,
  8. void onError(
    1. dynamic error,
    2. StackTrace stackTrace
    )?,
  9. DefaultLoaderThemeData? themeData,
  10. 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);