toInt function

int toInt(
  1. String string
)

Implementation

int toInt(String string) {
  return int.tryParse(string) ?? 0;
}