toInt method

int? toInt()

Implementation

int? toInt() {
  if (this != null) {
    return int.tryParse(this!);
  }
  return null;
}