toInt method

int? toInt()

convert String to int if is possible else will return null

Implementation

int? toInt() => _Parser(this).toInt();