split method
- Rect area
override
Splits the given area
into multiple sub-areas.
Implementation
@override
List<Rect> split(Rect area) {
final length = area.height ~/ height;
if (length == 0) {
return const [Rect.zero];
}
return [
for (var y = area.top; y < area.top + length * height; y += height)
Rect.fromLTWH(
area.left,
y,
area.width,
height,
),
];
}