SelectionRegion.fromRect constructor
SelectionRegion.fromRect(
- Rect rect
Creates a SelectionRegion from a Rect with positive dimensions.
Implementation
factory SelectionRegion.fromRect(Rect rect) => SelectionRegion(
minCol: rect.x,
maxCol: rect.x + rect.width - 1,
minRow: rect.y,
maxRow: rect.y + rect.height - 1,
);