calcPadding static method Null safety

String calcPadding(
  1. int indent
)

Calculates an amount of padding to provie at the beginning of each new line based on indent.

Implementation

static String calcPadding(int indent) => List.filled(indent, '  ').join();