FutureBuilder<T> constructor

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

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

The builder must not be null.

Implementation

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