toInt method

int? toInt()

convert value in Int

Implementation

int? toInt() => isNotEmptyOrNull ? int.tryParse(this!) : null;