toDoubleOrNull method

  1. @useResult
double? toDoubleOrNull()

Converts this nullable num to a double, or returns null if null.

Implementation

@useResult
double? toDoubleOrNull() => this?.toDouble();