visitAncestor method Null safety

  1. @mustCallSuper
void visitAncestor(
  1. Component ancestor
)
@mustCallSuper, inherited

Called whenever we're resolving the artboard, we piggy back on that process to visit ancestors in the tree. This is a good opportunity to check if we have an ancestor of a specific type. For example, a Path needs to know which Shape it's within.

Implementation

@mustCallSuper
void visitAncestor(Component ancestor) {}