create static method
Factory for creating square glyphs.
Implementation
static SquareGlyph create({
required double x,
required double y,
double size = 8,
Color color = const Color(0xFF000000),
Color? strokeColor,
double strokeWidth = 1.0,
}) {
return SquareGlyph(
x: x,
y: y,
size: size,
color: color,
strokeColor: strokeColor,
strokeWidth: strokeWidth,
);
}