letIntOrNull function

int? letIntOrNull(
  1. dynamic input
)

Let's you convert input to an int type if possible, or returns null if the conversion cannot be performed.

Implementation

int? letIntOrNull(dynamic input) {
  return letNumOrNull(input)?.toInt();
}