kminus property
we need to check if we have the right to change the account, otherwise leave it as is, in the framework you need to check if the value changed....
Implementation
set kminus (Konto other)
{
if(limits== null ) _kminus = other;
else
{
int otherint = (int.tryParse(other.name) != null)?int.tryParse(other.name)!:0;
int min = (limits!["kmin"].containsKey("min"))?int.tryParse(limits!["kmin"]["min"])!:0;
int max = (limits!["kmin"].containsKey("max"))?int.tryParse(limits!["kmin"]["max"])!:0;
if(min== 0 && max ==1000000 ) _kminus = other;//{print("invalid ranges : changing value");}
else if(min<= otherint && max >=otherint ) _kminus = other;//{print("inside range, change!");}
//else print("invalid range... unchanged");
}
}