createCopyTextLayer method
Create a copy of a TextLayerData instance.
Implementation
TextLayerData createCopyTextLayer(TextLayerData layer) {
return TextLayerData(
id: layer.id,
text: layer.text,
align: layer.align,
fontScale: layer.fontScale,
background: Color(layer.background.value),
color: Color(layer.color.value),
colorMode: layer.colorMode,
colorPickerPosition: layer.colorPickerPosition,
offset: Offset(layer.offset.dx, layer.offset.dy),
rotation: layer.rotation,
textStyle: layer.textStyle,
scale: layer.scale,
flipX: layer.flipX,
flipY: layer.flipY,
customSecondaryColor: layer.customSecondaryColor,
);
}