generateRandomDecimal method

String generateRandomDecimal([
  1. int length = 1
])

Implementation

String generateRandomDecimal([int length = 1]) {
  return List.generate(length, (index) => generateRandomDigit(0, 9)).join();
}