HttpInfo.error constructor

HttpInfo.error(
  1. String error
)

Implementation

factory HttpInfo.error(String error) {
  return HttpInfo(null, '')
    ..error = error
    ..response.update(-1, '', '', 0);
}