toInt static method

int toInt(
  1. Object? value
)

Implementation

static int toInt(Object? value) {
  return toDouble(value).toInt();
}