toInt method

int toInt([
  1. int def = 0
])

Implementation

int toInt([int def = 0]) => toNullableInt() ?? def;