toSize method Null safety
- Size container
Convert this RelativeRect to a Size, assuming a container with the given size.
See also:
- toRect, which also computes the position relative to the container.
Implementation
Size toSize(Size container) {
return Size(container.width - left - right, container.height - top - bottom);
}