toNumber property

num? get toNumber

Implementation

num? get toNumber {
  if (trim().isEmpty) {
    return null;
  }
  return double.tryParse(trim());
}