toIntOrNull method

int? toIntOrNull()

Converts string to int or returns null

Implementation

int? toIntOrNull() => int.tryParse(this);