centerSlice property
The center slice for a nine-patch image.
The region of the image inside the center slice will be stretched both horizontally and vertically to fit the image into its destination. The region of the image above and below the center slice will be stretched only horizontally and the region of the image to the left and right of the center slice will be stretched only vertically.
Implementation
Rect? get centerSlice => _centerSlice;
Implementation
set centerSlice(Rect? value) {
if (value == _centerSlice) {
return;
}
_centerSlice = value;
markNeedsPaint();
}