Result<T>.network constructor

Result<T>.network({
  1. T? data,
  2. T? errorData,
  3. Response? response,
  4. Exception? exception,
  5. int? statusCode,
  6. String? statusMessage,
})

Implementation

factory Result.network({
  T? data,
  T? errorData,
  Response? response,
  Exception? exception,
  int? statusCode,
  String? statusMessage,
}) =>
    NetworkResult(
      data: data,
      errorData: errorData,
      response: response,
      exception: exception,
      statusCode: statusCode,
      statusMessage: statusMessage,
    );