LoadingBuilder constructor

const LoadingBuilder({
  1. Key? key,
  2. required List<FutureOr?> futures,
  3. required Widget builder(
    1. BuildContext context
    ),
  4. Color? indicatorColor,
  5. Widget? loading,
})

Pass multiple Future/FutureOr/Null data and display loading or CircularProgressIndicator until all completions are completed.

Pass the target Future in futures.

In builder, you can specify the widget to be drawn after futures is completed.

If indicatorColor is specified, the color of CircularProgressIndicator can be changed when it is displayed when loading is not specified.

複数のFuture/FutureOr/Nullデータを渡してすべての完了を完了するまでloadingCircularProgressIndicatorを表示します。

futuresで対象となるFutureを渡します。

builderfuturesが完了した後に描画するウィジェットを指定できます。

indicatorColorを指定するとloadingを指定しない場合にCircularProgressIndicatorを表示するときにその色を変えることができます。

Implementation

const LoadingBuilder({
  super.key,
  required this.futures,
  required this.builder,
  this.indicatorColor,
  this.loading,
});