Returns the component's text FontStyle.
Implementation
FontStyle? get fontStyle {
if (this.node is! figma.Text) {
return null;
}
final node = this.node as figma.Text;
return switch (node.style?.italic) {
true => FontStyle.italic,
_ => FontStyle.normal,
};
}