onError property Null safety

(void Function?(dynamic error)?) onError
final

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

Implementation

final void Function(dynamic error)? onError;