contains method

bool contains(
  1. Offset position
)

Whether a position is within the constraints.

Implementation

bool contains(Offset position) {
  final constrained = constrain(position);
  return constrained == position;
}