ApiResult<T>.failure constructor

const ApiResult<T>.failure({
  1. required String error,
})

Implementation

const factory ApiResult.failure({required String error}) = Failure<T>;