toNum method

num? toNum()

Implementation

num? toNum() {
  num? number = num.tryParse(this);
  return number;
}