toDoubleOrNull method

double? toDoubleOrNull()

Returns null when parsing fails.

Implementation

double? toDoubleOrNull() => double.tryParse(trim());