onApiSuccess method
dynamic
onApiSuccess(
- dynamic onSuccess(
- Response response,
- dynamic data
Set the onSuccess callback
Implementation
onApiSuccess(Function(Response response, dynamic data) onSuccess) {
_apiService ??= apiService;
_apiService!.onSuccess(onSuccess);
}