double checkPercentage(String? number,) { // return number in percentage if (number == null) { return 0.00; } return double.parse(number) / 100; }