parsed property

num? get parsed

Implementation

num? get parsed {
  if (text.isEmpty || text == '-' || text == '.') return null;
  return num.tryParse(text);
}