validateGS1 method

bool validateGS1(
  1. String value
)

Check is this barcode valid as GS1.

Implementation

bool validateGS1(String value) {
  int? check = int.tryParse(value);
  print(check);
  if (check == null) return false;
  if (value.length > 13) return false;
  return true;
}