getWidgetHashCode function Null safety
Implementation
int getWidgetHashCode(String name, [int index = 0]) {
var elems = getElementsByName(name, index + 1);
if (index < elems.length) {
var code = elems[index].widget?.widget?.hashCode;
code ??= -1;
return code;
}
return -1;
}