toIntSafe method

int toIntSafe({
  1. int defaultValue = 0,
})

Implementation

int toIntSafe({int defaultValue = 0}) => this?.toInt() ?? defaultValue;