A number from a num or a numeric string; null otherwise.
double? looseNum(Object? value) => switch (value) { num n => n.toDouble(), String s => double.tryParse(s.trim()), _ => null, };