onData property

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

A callback that will be called when the future completes successfully with a non-empty result.

This callback is triggered when the AsyncSnapshot.connectionState is ConnectionState.done and AsyncSnapshot.data is not null.

Implementation

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