kparseInt method

int kparseInt({
  1. int defValue = 0,
})

将数字字符串转int

Implementation

int kparseInt({int defValue = 0}) =>
    int.tryParse(this ?? defValue.toString()) ?? defValue;