firstNestedParent property

NestedPage? get firstNestedParent

Implementation

NestedPage? get firstNestedParent {
  if (parent != null && parent is NestedPage) {
    return parent! as NestedPage;
  } else if (parent != null) {
    return parent!.firstNestedParent;
  } else {
    return null;
  }
}