writeAligned method
void
writeAligned(])
inherited
Writes a quantity of text to the console with padding to the given width.
Implementation
void writeAligned(
Object text, [
int? width,
TextAlignment alignment = TextAlignment.left,
]) {
final textAsString = text.toString();
stdout.write(
textAsString.alignText(
width: width ?? textAsString.length,
alignment: alignment,
),
);
}