getBlockRect method

  1. @override
Rect getBlockRect({
  1. bool shiftWithBaseOffset = false,
})

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;
}