QrNumeric.fromString constructor
QrNumeric.fromString(
- String numberString
Implementation
factory QrNumeric.fromString(String numberString) {
final newList = Uint8List(numberString.length);
var count = 0;
for (var char in numberString.codeUnits) {
if (char < 0x30 || char > 0x39) {
throw ArgumentError('string can only contain alpha numeric 0-9');
}
newList[count++] = char - 0x30;
}
return QrNumeric._(newList);
}