fromString static method

AdifInteger fromString(
  1. String str
)
override

Implementation

static AdifInteger fromString(String str) {
  final intValue = int.tryParse(str);
  if (intValue == null) {
    throw ArgumentError('Invalid integer string: $str');
  }
  return AdifInteger(intValue);
}