toInt function

int? toInt(
  1. dynamic number
)

Implementation

int? toInt(number) {
  return int.tryParse(number.toString());
}