DependenciesBuilder constructor

const DependenciesBuilder({
  1. required List<Dependency<Object>> dependencies,
  2. required Widget builder(
    1. BuildContext context,
    2. Dependencies scope
    ),
  3. Widget waitingBuilder(
    1. BuildContext context
    )?,
  4. Key? key,
})

Creates a DependenciesBuilder.

  • dependencies: A list of dependencies to be managed and provided to descendant widgets.
  • builder: A callback to build the widget tree when all dependencies are loaded.
  • waitingBuilder: (Optional) A callback to build a widget tree displayed while waiting for dependencies to load.

Implementation

const DependenciesBuilder({
  required this.dependencies,
  required this.builder,
  this.waitingBuilder,
  super.key,
});