getErrorDetails function

String getErrorDetails(
  1. FlyResponse response
)

Implementation

String getErrorDetails(FlyResponse response) {
  if (Platform.isIOS) {
    return '${response.errorMessage}${response.errorDetails != null ? ", ${response.errorDetails}" : ""}';
  } else {
    return response.errorMessage;
  }
}