handleError method

void handleError(
  1. dynamic error
)

Implementation

void handleError(dynamic error) {
  // Log the error or show error message to the user
  print('API error: $error');
}