getBlockRect method
Returns the Rect representing the block selection in current widget.
Normally, the rect should not include the action menu area.
Implementation
@override
Rect getBlockRect({
bool shiftWithBaseOffset = false,
}) {
final imageBox = imageKey.currentContext?.findRenderObject();
if (imageBox is RenderBox) {
return Offset.zero & imageBox.size;
}
return Rect.zero;
}