initialIndexNotFoundCallback property
Callback invoked when the index specified by initialIndex cannot be fetched by fetchNext during initialization (e.g., when fetchNext returns an empty List).
index
is the index used when calling fetchNext. This value is the same as initialIndex.
Returning true will re-initialize, causing initialIndex to be called again. Returning false will abort the initialization and display an empty list.
If the number of retry attempts exceeds 10, giveup
becomes true,
and initialization is forcibly aborted even if this method returns true.
Implementation
final bool Function(int index, bool giveup)? initialIndexNotFoundCallback;