toInt property

int? get toInt

convert value in Int

Implementation

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