toInt static method

int toInt(
  1. Object? value
)

Convert string to int

Implementation

static int toInt(Object? value) => (value != null) ? int.parse('$value') : 0;