getValue function

double getValue(
  1. String value
)

Implementation

double getValue(String value) {
  if (value.isEmpty) return 0.0;
  String newText = value.replaceAll(RegExp('[^0-9]'), '');
  return int.parse(newText) / 100;
}