toIntOrNone method

Option<int> toIntOrNone()

Implementation

Option<int> toIntOrNone() {
  return Option.from(int.tryParse(this));
}