Set the line width at the start and at the end.
using UnityEngine;
public class Example : MonoBehaviour { // Adds a lineRenderer to this transform and // Converts the line Renderer into a triangle.
void Start() { LineRenderer lineRenderer = gameObject.AddComponent<LineRenderer>(); lineRenderer.SetWidth(0, 3); } }