TextLayerData constructor
TextLayerData({})
Implementation
TextLayerData({
required this.id,
this.text = '',
Offset? position,
Offset? relativePosition,
this.color = Colors.white,
this.fontSize = 32.0,
this.isSelected = false,
}) : relativePosition = relativePosition ?? (position != null ? _toRelativePosition(position, Size.zero) : const Offset(0.5, 0.5));