onEmptyData property

(void Function(AsyncSnapshot<List<T>>)?) onEmptyData
final

A callback that will be called when the future completes successfully with an empty result.

This callback is triggered when the AsyncSnapshot.connectionState is ConnectionState.done and AsyncSnapshot.hasData is false.

Implementation

final void Function(AsyncSnapshot<List<T>>)? onEmptyData;