selectTextLayerAt method
根据点击位置选择文本图层,返回是否命中
Implementation
bool selectTextLayerAt(Offset tapPosition) {
final selectedId = _textLayerManager.selectLayerAt(
tapPosition,
_canvasSize ?? Size.zero,
);
if (selectedId != null) {
notifyListeners();
return true;
}
return false;
}