Calculates the dartIndex of a #key
hash method
string of hash name ('#' is inserted in front of name if it's missing)
Value of the key to be found
Calculates the dartIndex of a #key