padZeroMilliseconds method

String padZeroMilliseconds(
  1. int number
)

Implementation

String padZeroMilliseconds(int number) {
  return number.toString().padLeft(3, '0');
}