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 videoBox = videoKey.currentContext?.findRenderObject();
if (videoBox is RenderBox) {
return Offset.zero & videoBox.size;
}
return Rect.zero;
}