fills property
List<Paint> ?
get
fills
The fill properties of the shape
Implementation
List<figma.Paint>? get fills {
return getCached("fills", () {
List<figma.Paint>? fills;
if (node is figma.Rectangle) fills = (node as figma.Rectangle).fills;
if (node is figma.Ellipse) fills = (node as figma.Ellipse).fills;
if (node is figma.Instance) fills = (node as figma.Instance).fills;
if (node is figma.Vector) fills = (node as figma.Vector).fills;
if (node is figma.Frame) fills = (node as figma.Frame).fills;
return fills?.where((fill) => fill.visible).toList();
});
}