leftPadding static method
Implementation
static String leftPadding(String s, int width) {
const paddingData = '000000000000000';
final paddingWidth = width - s.length;
if (paddingWidth < 1) {
return s;
}
return "${paddingData.substring(0, paddingWidth)}$s";
}