onApiError method
dynamic
onApiError(
- dynamic onError(
- dynamic error
Set the onError callback
Implementation
onApiError(Function(dynamic error) onError) {
_apiService ??= apiService;
_apiService!.onError(onError);
}