documentsForImage method
Implementation
List<FigmaDocument> documentsForImage([FigmaDocument? parent]) {
if (this == null) return [];
final lst = List<FigmaDocument>.from([])
..add(
this!.copyWith.parent(parent),
);
if (this!.children != null) {
for (final item in this!.children!) {
lst.addAll(
item.documentsForImage(
(this?.type == 'FRAME' ? this : null) ?? parent,
),
);
}
}
return lst;
}