create static method

TriangleGlyph create({
  1. required double x,
  2. required double y,
  3. double size = 8,
  4. Color color = const Color(0xFF000000),
  5. Color? strokeColor,
  6. double strokeWidth = 1.0,
  7. bool pointUp = true,
})

Factory for creating triangle glyphs.

Implementation

static TriangleGlyph create({
  required double x,
  required double y,
  double size = 8,
  Color color = const Color(0xFF000000),
  Color? strokeColor,
  double strokeWidth = 1.0,
  bool pointUp = true,
}) {
  return TriangleGlyph(
    x: x,
    y: y,
    size: size,
    color: color,
    strokeColor: strokeColor,
    strokeWidth: strokeWidth,
    pointUp: pointUp,
  );
}