updateTextPosition method
Implementation
void updateTextPosition(String id, double x, double y, {double? rotation, double? scale}) {
final index = _textOverlays.indexWhere((t) => t.id == id);
if (index != -1) {
_textOverlays[index].x = x;
_textOverlays[index].y = y;
if (rotation != null) _textOverlays[index].rotation = rotation;
if (scale != null) _textOverlays[index].scale = scale;
}
}