initialData property

List<T>? initialData
final

The data that will be used to create the snapshots provided until a non-null future has completed.

If the future completes with an error, the data in the AsyncSnapshot provided to the builder will become null, regardless of initialData. (The error itself will be available in AsyncSnapshot.error, and AsyncSnapshot.hasError will be true.)

Fore more: check FutureBuilder's initialData property.

Implementation

final List<T>? initialData;