double toDoubleSafe({double defaultValue = 0.0}) { if (this == null) return defaultValue; return double.tryParse(this!.trim()) ?? defaultValue; }