numberValue property
double
numberValue
The numeric value of the text
Implementation
double get numberValue {
final parts = _getOnlyNumbers(text).split('').toList(growable: true);
if (parts.isEmpty) {
return 0;
}
parts.insert(parts.length - precision, '.');
return double.parse(parts.join());
}