isDouble property

bool get isDouble

Returns true if string is double.

"xyz".isDouble;    // false
"12.45".isDouble;  // true

Implementation

bool get isDouble => toDouble() != null;