strPercent2Double static method

double? strPercent2Double(
  1. String? str
)

Implementation

static double? strPercent2Double(String? str) {
  if(str == null || str.isEmpty) {
    return null;
  }
  return double.tryParse(str.substring(0, str.length-1));
}