hasAncestors function
Implementation
bool hasAncestors(Object object, List<String> strings) {
bool hasAncestors = true;
for (final string in strings) {
hasAncestors = widgetAncestorChainOf(object).contains(string);
if (!hasAncestors) break;
}
return hasAncestors;
}