toDouble method

double? toDouble({
  1. double? defaultValue,
})

Parse this string as an double literal and return its value.

Implementation

double? toDouble({double? defaultValue}) {
  final String? _copy = this;
  if (_copy == null) {
    return defaultValue;
  }
  return double.parse(_copy);
}