Result<T>.failure constructor

Result<T>.failure(
  1. Object? error
)

Implementation

factory Result.failure(Object? error) => Failure(error);