numOf method

The number typed in c (Persian digits and separators allowed); null when empty.

Implementation

double? numOf(TextEditingController c) => c.text.trim().isEmpty ? null : c.numDouble();