Skip to content

LineCap

LineCap enumeration consists of styles for rendering the endpoint of a stroked line.

class LineCap {
  static const int Butt = 0;
  static const int Round = 1;
  static const int Square = 2;
}
Constant Description
Butt The stroke ends with the path, and does not project beyond it.
Round The stroke projects out as a semicircle, with the center at the end of the path.
Square The stroke projects out as a square, with the center at the end of the path.

Info

For more information, please see the official Apple and Android documentation.

Back to top