numeric static method

String numeric(
  1. int length, {
  2. AbstractRandomProvider provider = const DefaultRandomProvider(),
})

Generates a random string of length with only numeric characters.

Implementation

static String numeric(
  int length, {
  AbstractRandomProvider provider = const DefaultRandomProvider(),
}) =>
    string(
      length,
      from: numericStart,
      to: numericEnd,
      provider: provider,
    );