calcSconto method

dynamic calcSconto(
  1. TextEditingController controller,
  2. String value
)

Implementation

calcSconto(TextEditingController controller, String value) {
  if (controller.text == "") {
    return value.replaceAll("+", "");
  } else {
    return value;
  }
}