Aligned constructor
Aligned({
- required int width,
- required HorizontalAlign align,
- required LogSpan? child,
Creates an aligned span with fixed width.
- HorizontalAlign.left: Content is padded on the right with spaces.
- HorizontalAlign.right: Content is padded on the left with spaces.
- HorizontalAlign.center: Content is padded equally on both sides. If the padding is odd, the extra space goes on the right.
Implementation
Aligned({
required this.width,
required this.align,
required super.child,
});