FutureBuilder<T> constructor

const FutureBuilder<T>(
  1. {Key? key,
  2. required Future<T>? future,
  3. T? initialData,
  4. required AsyncWidgetBuilder<T> builder}
)

Creates a widget that builds itself based on the latest snapshot of interaction with a Future.

Implementation

const FutureBuilder({
  super.key,
  required this.future,
  this.initialData,
  required this.builder,
});