fills property

List<Paint>? get fills

The fill properties affecting text color and gradients

Implementation

List<figma.Paint>? get fills {
  List<figma.Paint>? fills;
  if (node is figma.Text) fills = (node as figma.Text).fills;
  if (node is figma.Instance) fills = (node as figma.Instance).fills;
  return fills?.where((fill) => fill.visible).toList();
}