Result<ResultType>.failure constructor

const Result<ResultType>.failure(
  1. AppError error
)

Type representing the Failure case of a Result of a asynchronus task possible outcome

Implementation

const factory Result.failure(AppError error) = Failure;