onError property

(void Function(dynamic error)?) onError
final

It gets triggered in case of an error occurs while fetching results.

Implementation

final void Function(dynamic error)? onError;