QrAlphaNumeric.fromString constructor

QrAlphaNumeric.fromString(
  1. String alphaNumeric
)

Implementation

factory QrAlphaNumeric.fromString(String alphaNumeric) {
  if (!alphaNumeric.contains(validationRegex)) {
    throw ArgumentError('String does not contain valid ALPHA-NUM '
        'character set: $alphaNumeric');
  }
  return QrAlphaNumeric._(alphaNumeric);
}