aves_mio22/lib/widgets/common/extensions/geometry.dart
2026-04-18 20:05:02 +02:00

7 lines
275 B
Dart

import 'dart:ui';
extension ExtraRect on Rect {
bool containsIncludingBottomRight(Offset offset, {double tolerance = 0}) {
return offset.dx >= left - tolerance && offset.dx <= right + tolerance && offset.dy >= top - tolerance && offset.dy <= bottom + tolerance;
}
}