stringToInt static method

int stringToInt(
  1. dynamic value
)

Implementation

static int stringToInt(dynamic value) {
  if (value is String) {
    return int.parse(value);
  } else {
    return value;
  }
}