get method
return the asked account null if not found (BEWARE!!) .
Implementation
Konto? get(String ktoName) {
//print("ktop get for $ktoName");
if (konten.containsKey(ktoName)) return konten[ktoName];
//print("ktop seems we need to recurse");
//but maybe we must recurse?
if (ktoName.length > 1) {
//print("name is long enough....");
String key = ktoName[0];
if (konten.containsKey(key))
return konten[key]!.get(ktoName.substring(1));
//print("ktop but konten doesn't contain $key");
return null;
}
//print("ktop far enough no lolly");
return null;
}