initialData property

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.)

Implementation

final T initialData