double toDouble({double? defaultValue}) { if (this == null) { return defaultValue ?? 0.0; } return double.tryParse(this!.replaceAll(',', '.').trim()) ?? defaultValue ?? 0.0; }