getFirstElementByName function Null safety
- String name
Returns first element matching Figma name
Implementation
Elem getFirstElementByName(String name) {
var elems = getElementsByName(name);
return elems.length > 0 ? elems[0] : Elem();
}
Returns first element matching Figma name
Elem getFirstElementByName(String name) {
var elems = getElementsByName(name);
return elems.length > 0 ? elems[0] : Elem();
}