centerLines method

Iterable<String> centerLines(
  1. Iterable<String> lines, {
  2. String padding = " ",
})

Centers a iterable of String according to this console's size.

Implementation

Iterable<String> centerLines(Iterable<String> lines,
        {String padding = " "}) =>
    lines.center(width: size.$1, padding: padding);