aves_mio18/lib/widgets/common/extensions/geometry.dart
2026-04-14 09:53: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;
}
}