isValid method

  1. @nonVirtual
bool isValid(
  1. String data
)

Check if the Barcode is valid

Implementation

@nonVirtual
bool isValid(String data) {
  try {
    verify(data);
  } catch (_) {
    return false;
  }

  return true;
}