expandToInclude method
Creates a new range that encompasses both this range and other.
Implementation
LayoutRange expandToInclude(LayoutRange other) {
return LayoutRange(
min(start, other.start),
max(end, other.end),
);
}
Creates a new range that encompasses both this range and other.
LayoutRange expandToInclude(LayoutRange other) {
return LayoutRange(
min(start, other.start),
max(end, other.end),
);
}