Result<T>.success constructor

const Result<T>.success(
  1. T? _result
)

Creates a new success Result with the given result.

Implementation

const Result.success(this._result) : error = null;