kplus property

Konto kplus

Implementation

Konto get kplus  => _kplus;
void kplus=(Konto other)

Implementation

set kplus (Konto other)
{
  if(limits== null ) _kplus = other;
  else
  {
    int otherint = (int.tryParse(other.name) != null)?int.tryParse(other.name)!:0;
    int min = (limits!["kplu"].containsKey("min"))?int.tryParse(limits!["kplu"]["min"])!:0;
    int max = (limits!["kplu"].containsKey("max"))?int.tryParse(limits!["kplu"]["max"])!:0;

    if(min== 0 && max ==1000000 ) _kplus = other;//{print("invalid ranges : changing value");}
    else if(min<= otherint && max >=otherint ) _kplus = other;//{print("inside range, change!");}
    //else print("invalid range... unchanged");
  }
}