tryParseDouble function

double? tryParseDouble(
  1. String? value
)

A wrapper around double.tryParse that accepts a null argument.

Implementation

double? tryParseDouble(String? value) =>
    value == null ? null : double.tryParse(value);