setValuta method

void setValuta(
  1. String toParse
)

Implementation

void setValuta(String toParse)
{
  toParse = toParse.trim();
  //print("aboutto number parse '$toParse' ser");
  valuta = (toParse.isNotEmpty)?(NumberFormat.currency().parse(toParse) * 100).toInt():0;
}