inflateSize method
Returns a new size that is bigger than the given size by the amount of inset in the horizontal and vertical directions.
See also:
- EdgeInsets.inflateRect, to inflate a Rect rather than a Size (for EdgeInsetsDirectional, requires first calling resolve to establish how the start and end map to the left or right).
- deflateSize, to deflate a Size rather than inflating it.
Implementation
Size inflateSize(Size size) {
return Size(size.width + horizontal, size.height + vertical);
}