getUint method
Returns the unsigned integer value of the field at index i
. If the field is not a valid unsigned
integer value will return -1.
Implementation
int getUint(int i) {
final field = getField(i);
final value = int.tryParse(field);
if (value == null || value < 0) {
error = 'invalid unsigned integer value: $field';
return -1;
}
return value;
}