toInt method

int? toInt()

Parse to int

Implementation

int? toInt() {
  if (this == null) {
    throw FormatException();
  }
  return int.parse(this!);
}