getApiError function

Map<String, dynamic> getApiError(
  1. String errorKey
)

Returns the API error message. The errorKey parameter is required and represents the error key.

Implementation

Map<String, dynamic> getApiError(String errorKey) {
  return API_ERRORS[errorKey] ?? {};
}