toInt static method

int toInt(
  1. dynamic value
)

Implementation

static int toInt(dynamic value) {
  if (value == null) {
    return 0;
  }

  return int.parse(value.toString());
}