toInt method

int toInt()

Implementation

int toInt() {
  try {
    return int.parse(this);
  } catch (e) {
    return 0;
  }
}