toRect

open override fun toRect(): Rect

Converts this Size to a Rect using Position.zero.

open override fun toRect(position: Position): Rect

Converts this Size to a Rect with the given Position.