allBarcodeCharactersAreNumbers static method

bool allBarcodeCharactersAreNumbers(
  1. String barcode
)

Implementation

static bool allBarcodeCharactersAreNumbers(String barcode) {
  return barcode.runes.every((rune) => rune >= 48 && rune <= 57);
}