CircularTextLayout constructor
CircularTextLayout({})
Implementation
CircularTextLayout({
required super.width,
required super.height,
required super.fontSize,
this.circleMargin = 15.0, // Margin from the edge of the canvas to the circle.
super.fontFamily,
super.textAlign = ui.TextAlign.center,
}) {
radius = (math.min(width, height) / 2.0) - circleMargin;
centerX = width / 2.0;
centerY = height / 2.0;
}