hasAncestors function

bool hasAncestors(
  1. Object object,
  2. List<String> strings
)

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;
}