coerceDouble method

double coerceDouble(
  1. dynamic a
)

Implementation

double coerceDouble(dynamic a) => a == null
    ? 0.0
    : (a is num)
        ? a.toDouble()
        : double.tryParse(a.toString()) ?? 0.0;