containsGlobalPoint method
Returns true if globalPosition lies within this swipe row's bounds.
Implementation
@override
bool containsGlobalPoint(Offset globalPosition) {
if (!mounted) return false;
final renderObject = context.findRenderObject();
if (renderObject is RenderBox &&
renderObject.hasSize &&
renderObject.attached) {
final localPosition = renderObject.globalToLocal(globalPosition);
return renderObject.size.contains(localPosition);
}
return false;
}