ProgressIndicatorBuilder<T extends Listenable> constructor
const
ProgressIndicatorBuilder<T extends Listenable> ({})
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を介して進行状況を表すプログレスインジケーターを表示します。
listenableにChangeNotifierを渡し、progressに進行率を返すためのコールバックを渡します。
progressで返す値は0.0
〜1.0
の間で返してください。
builderに実際のインジケーターのウィジェットを渡します。
デフォルトだとdefaultCircularProgressIndicatorが指定されます。他にdefaultLinearProgressIndicatorも利用可能です。
Implementation
const ProgressIndicatorBuilder({
super.key,
required this.listenable,
required this.progress,
this.builder = defaultCircularProgressIndicator,
});