Result<S, E>.Ok constructor

Result<S, E>.Ok(
  1. S result
)

Implementation

factory Result.Ok(S result) {
  return Result._(
      true,
      success: result,
      error: null
  );
}