toDouble method

double? toDouble()

Implementation

double? toDouble() {
  if (isNullOrEmpty) return null;
  return double.tryParse(this!);
}