topad method
Pads string on the left and right sides if it's shorter than length. Padding characters are truncated if they can't be evenly divided by length. Example: "hello" -> "hello" -> "hello"
Implementation
String topad(int length, [String? chars]) => pad(this, length, chars);