Result<T>.error constructor

Result<T>.error({
  1. Exception? exception,
})

Implementation

factory Result.error({
  Exception? exception,
}) =>
    ErrorResult(
      exception: exception,
    );