Creates a new success Result with the given result.
const Result.success(this._result) : error = null;