ProgressIndicatorBuilder<T extends Listenable> constructor

const ProgressIndicatorBuilder<T extends Listenable>({
  1. Key? key,
  2. required T listenable,
  3. required double progress(
    1. T listenable
    ),
  4. Widget builder(
    1. double value
    ) = defaultCircularProgressIndicator,
})

Progress indicator to show progress via ChangeNotifier.

Pass ChangeNotifier to listenable and a callback to return the rate of progress to progress.

The value returned by progress should be between 0.0 and 1.0.

Pass the actual indicator widget to builder.

By default, defaultCircularProgressIndicator is specified. Another option is defaultLinearProgressIndicator.

ChangeNotifierを介して進行状況を表すプログレスインジケーターを表示します。

listenableChangeNotifierを渡し、progressに進行率を返すためのコールバックを渡します。

progressで返す値は0.01.0の間で返してください。

builderに実際のインジケーターのウィジェットを渡します。

デフォルトだとdefaultCircularProgressIndicatorが指定されます。他にdefaultLinearProgressIndicatorも利用可能です。

Implementation

const ProgressIndicatorBuilder({
  super.key,
  required this.listenable,
  required this.progress,
  this.builder = defaultCircularProgressIndicator,
});