expandToInclude method

LayoutRange expandToInclude(
  1. LayoutRange other
)

Implementation

LayoutRange expandToInclude(LayoutRange other) {
  return LayoutRange(
    min(start, other.start),
    max(end, other.end),
  );
}