toInt property

int? get toInt

Returns the int value of this string.

Example: '123'.toInt -> 123.

Implementation

int? get toInt => .tryParse(this);