HTTPResult.failure constructor

HTTPResult.failure(
  1. String error
)

Implementation

factory HTTPResult.failure(String error) =>
    HTTPResult(isSuccess: false, error: error);