contains method

  1. @override
bool contains(
  1. CellOffset position
)
override

Returns true if the givenposition is within this range.

Implementation

@override
bool contains(CellOffset position) {
  final self = normalized;
  return self.begin.isBeforeOrSame(position) &&
      self.end.isAfterOrSame(position);
}