asDouble method

double asDouble({
  1. double? def,
})

Implementation

double asDouble({double? def}) {
  return double.tryParse(this.toString()) ?? def ?? 0.0;
}