dToInt method

int? dToInt()

转为int

Implementation

int? dToInt() {
  try {
    return int.tryParse(this);
  } catch (e) {
    return null;
  }
}