Same as parse but returns null instead of throwing errors.
null
num? tryParse(String str) { try { return parse(str); } catch (_) { return null; } }