toInt property

int? toInt

toInt extension this method can be used on string as an extension to convert a string into integer

Implementation

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